Reply To: GREP, how to select everything except a specific word

Home Page / Forums / InDesign User Groups / GREP, how to select everything except a specific word / Reply To: GREP, how to select everything except a specific word

#87917
David Blatner
Keymaster

Yes, when you put characters in square brackets, such as [abc] it means “any one of these.” And the caret means “not” so [^abc] means “not any of these.”

You would probably have to do something like .+?(?=shining) to grab the text before the word (that’s a “positive lookahead”), and then use a positive lookbehind to capture the text after the word.

This article was last modified on August 30, 2016

Comments (0)

Loading comments...