Reply To: Grep duplicate-select first instance

Home Page / Forums / InDesign User Groups / Grep duplicate-select first instance / Reply To: Grep duplicate-select first instance

#98073
Graham Park
Member

Don’t have an elegant solution for you but this will work, it will remove the second number following the month, tab, number. But it will not remove punctuation following the second date.
There is no real rule to find the months without finding text in other places, so they need to be explicitly defined.

GREP Find and replace
FIND
((January|February|March|April|May|June|July|August|September|October|November|December)\d+)(\d+)

REPLACE
$1

How it works is to find two groups and then only add back the first item found.

This article was last modified on September 13, 2017

Comments (0)

Loading comments...