Reply To: GREP to find any sentence with a list sep by commas & missing comma before "and"

Home Page / Forums / General InDesign Topics (CLOSED) / GREP to find any sentence with a list sep by commas & missing comma before "and" / Reply To: GREP to find any sentence with a list sep by commas & missing comma before "and"

#87090

First of all, I can recommend the “Highlight GREP-Skript” from Roland Dreger: https://www.rolanddreger.net/de/249/highlight-grep-in-indesign/#
Here you can see all founds in your document, without moving step by step.

To find only the word before comma …
\w+(?=,.+(and|or).+?[.?])

To find the whole sentence:
\w+,.+(and|or).+?[.?]

best
Kai

This article was last modified on August 5, 2016

Comments (0)

Loading comments...