GREP Library / Doubled punctuation before a dash
TypographyInDesign GREP

Doubled punctuation before a dash

Reduces multiple punctuation marks before dashes to a single mark. Captures first punctuation and removes duplicates.

Find
BeforeHello!!—world
([.!?])[.!?]+(?=[—–-])
Change to
AfterHello!—world
$1

Run all of these at once with the free GREP Batch Processor.

All GREPs in the library · Learn GREP · Special characters