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

#89492

Hi,

If you want to catch all text except: “Thomas”, “David”, “Skemicle” and … “Obi-wan”!

Do it simply:

Create a ‘not_Catch” condition and apply it to the words you don’t want to be catched:

Find: (Thomas|David|Skemicle|Obi-wan)
Replace by format: ‘not_Catch’ condition

Now, you just have to do this:

Find: (?s).+ + Non conditional

… and make what you want!

Simple to script! … I let you do it! ;-)

(^/)

This article was last modified on November 1, 2016

Comments (0)

Loading comments...