Reply To: Using GREP in paragraph style to format only the first occurrence of a phrase

Home Page / Forums / General InDesign Topics (CLOSED) / Using GREP in paragraph style to format only the first occurrence of a phrase / Reply To: Using GREP in paragraph style to format only the first occurrence of a phrase

#100172
Aaron Troia
Participant

No that wont work, lookbehinds must be non-greedy (no +), I tried using Keep (\K) which acts like a positive lookbehind but allows you to be greedy, but the problem with the GREP styles is that for some reason it doesnt like the beginning of line character. As soon as I would add that into my RegEx, my GREP style wouldnt act correct, but it would work fine in a GREP search.

This article was last modified on December 7, 2017

Comments (0)

Loading comments...