Reply To: GREP: Replacing consecutive numbers with dash

Home Page / Forums / General InDesign Topics (CLOSED) / GREP: Replacing consecutive numbers with dash / Reply To: GREP: Replacing consecutive numbers with dash

#14339742
Aaron Troia
Participant

Unfortunately not, GREP isn’t smart enough to recognize consecutive numbers like that, but you could do it if you selected the numbers, but you would physically need to select each range of numbers which I’m not really sure would be any quicker.

Here is an example GREP for that (with text selected)
Find:(\d+),.+?(\d+)$
Change: $1–$2
Search: Selection

Aaron

This article was last modified on June 1, 2021

Comments (0)

Loading comments...