Reply To: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE

Home Page / Forums / General InDesign Topics (CLOSED) / GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE / Reply To: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE

#1250934
Peter Kahrel
Participant

\K is for positive lookbehind only as far as I know. The classic lookbehind doesn’t handle variable-length arguments, so you can’t use operators like + and *. But in your case you can enumerate the options, in which case you can use the classic lookbehind:

((?<!ABCDE)(?<!FGH))XYZ

This article was last modified on May 17, 2020

Comments (0)

Loading comments...