Reply To: Inverse sentence _ GREP

#70411
David Blatner
Keymaster

Search for (.+?)*~_*(.+?)$
Replace with $2 ~_ $1

The * part means “zero or more white spaces”, so this will find any kind of space before or after the em dash. But it will replace it with just a normal space (you can adjust that of course).

This article was last modified on September 4, 2014

Comments (0)

Loading comments...