Reply To: Indesign grep – Applying character style to a letter on the third tab

Home Page / Forums / InDesign User Groups / Indesign grep – Applying character style to a letter on the third tab / Reply To: Indesign grep – Applying character style to a letter on the third tab

#116959
Jeremy Howard
Participant

Hey Andrew,

GREP can be a bit frustrating when you first start diving into it but I think it’s great that you’re giving it a go.

The issue with your grep is that you are stating that the style should be applied to the beginning fo the paragraph (^) then one character (.) and then two consecutive tabs (). What I would use for something like this is “\K” which causes the GREP string to ignore everything matched before it.

Here is the GREP string that I used to make this work:
.+.+\K.(?=)

This expression is stating that it should match, but not style, everything before the \K (.+.+)

The first part, (.+.+) says: one or more characters (.+) one tab character () one or more characters (.+) one tab character () IGNORE the matched stuff before here (\K) one character (.) with a positive lookahead to a tab ((?=))

This article was last modified on May 31, 2019

Comments (0)

Loading comments...