Copy link to clipboard
Copied
Hi there. I'm looking for a GREP that will change the text immediately after specific words (or a specific character style) into a new character style.
In my example below 'Specifications:' is already a character style (bold italics). I'd simply like the sentence that follows it to be in the a different character style (italics).
Although the word 'Specifications:' might differ the format will always be the same, so it will always be the final sentence (or line of text beginning with a capital and ending in a full stop) immediately after the bold italic word that I would like in italics.
Harcia vitio eum ipsum facculla ium, nobitatatur sitam eictetus eatus, siminvellit la is dipsandis. Specifications: Ut reperibus, sum et officii ssitestia simpore pereptaque nobisqui officid.
Many thanks!
Copy link to clipboard
Copied
Find: ":\h\K.+?\r"
Change: "Character Style"
Copy link to clipboard
Copied
Thanks... not having much joy with that one, is it a find/change query or a GREP I can insert into the style? I tried it both ways without success...
Copy link to clipboard
Copied
Simplistically:
(\b(Pizzas?|Hamburgers?|Cakes?):\h)(.(?!(?1)))+\.$
(^/) The Jedi