Copy link to clipboard
Copied
Good afternoon InDesign wizards. I'm not great with GREP but have been lucky enough to find a few corkers on here that have helped me considerably in my catalogue automation!
Would anyone be able to help with this one - I have a paragraph style and would like a GREP that turns everything that follows a particular phrase into my bold character style, until the end of the paragraph?
The phrase in question is a space followed by a glyph I use (arrow) then another space. According to my Find and Replace window it's ' ~a '. Many thanks folks.
Did you try to use a simple nested style?
We suppose the space-anchoring-space is at the beginning of the para. If not, this will be relevant:
\h~a\h\K.+
(^/)
Copy link to clipboard
Copied
In InDesign grep the '~a' sign represents an anchored object so your glyph may be an imported image.
For this, I would use the expression '^ ~a \K.+' as a search in the Grep style window in the paragraph style and apply your Bold character Style.
Copy link to clipboard
Copied
Grep Style:
(?s)^\h~a\h\K.+
"bold" char style
(^/) The Jedi
Copy link to clipboard
Copied
Thank you .... sorry this doesn't work, all text is still regular weight.
Copy link to clipboard
Copied
Thanks, this GREP doesn't seem to work, my paragraph is still regular text. You're right there is a space either side of the anchored object which in this case is an outlined arrow glyph.
Copy link to clipboard
Copied
Could you post an indd test file?
(^/)
Copy link to clipboard
Copied
We suppose the space-anchoring-space is at the beginning of the para. If not, this will be relevant:
\h~a\h\K.+
(^/)
Copy link to clipboard
Copied
Perfect - this one works. Much appreciated!
Copy link to clipboard
Copied
Did you try to use a simple nested style?
Copy link to clipboard
Copied
Thanks - perfect.