Set your character style in the Find Format panel, the use this GREP: \s$
$ is the end-of-string location match, and when you search for text styled in a character style, the end of what that style is applied to is considered the end of the string.
This is so simple and yet so powerful. Thank you!
The beginning-of-string equivalent does not seem to work. I am trying to find a space set in bold, before the word in bold. So ^\s with the "bold" character style chosen should do it, but it doesn't. Is there a workaround?
Why not \s(?=\w+) with the find format set to your Bold style?
> ... ^\s with the "bold" character style chosen should do it, but it doesn't. Is there a workaround?
The code '^' is "Start of paragraph" -- although there is (or possibly *was*) a bug that made it match 'not your current formatting'.
with your bold character formatting. It will match a space where there is nothing to its left *in bold*.
The strings set in bold contain several words, and the bold spaces in between them are fine. Only the bold spaces before such a string should be found.
Excellent! This works perfectly. I have used your string with the bold character formatting, and replaced the matches with [nothing], set in None style.
On second thought, I was surprised that it indeed had worked: why was the space replaced, and not deleted? Shouldn't I have used
and replaced it with