Home › Forums › General InDesign Topics › GREP needed: Finding duplicate last names in a list
Tagged: GREP duplicate
This topic contains 3 replies, has 3 voices, and was last updated by John Reynolds 3 months, 2 weeks ago.
I know how to find identical FULL paragraphs – ^(.+)*\K\1 – but I want to find paragraphs that have identical LEADS, such as a last name:
Allen, Arthur A.
II’m basically looking for duplicate names that are not entered correctly.
Here was something I came up with, I’m not sure if will work for all of them, but it might be a step in the right direction.
(\w+), (\w+)( \w\.)?\n$1, $2
hmmm tricky one…
You can give this one a shot:
It will (well, should…) catch blocks of paragraphs if they follow each other AND start by the same “lead” (I used comma as separator as per your example)
Looking forward for your feedback.
Thanks so much, Vinny. This is a real keeper.
You must be logged in to reply to this topic.
Our guide to discovering all the
great resources on the site!
© 2006 - 2018 CreativePro Network Inc. All Rights Reserved