Reply To: understanding GREP

#1248635
Aaron Troia
Participant

Niki,

Try,

Find: ^[^—]+

This says “Beginning at the start of the line, find everything not an Em Dash” to find everything between the start of the line and Em Dash.

If all your entries are one word you could do something this,

Find: ^\w+(?=—)

The ^\w+ might be enough but I add the lookahead assertion to make sure it is only finding words that precede an Em Dash.

Aaron

This article was last modified on May 7, 2020

Comments (0)

Loading comments...