Reply To: help with GREP!…

#63021

Not so easy; at least, not in a single step.

Are those en-spaces between the name and the digits? They appear as such when copying your text.

Try this:

^(.+~>)(d+(, d+)*)r1(?=d+)

– replace with

$1$2, [one single space]

This will find any pair of consecutive same-names, and replace the second occurrence with a comma. Repeat until it reports “Not found”.

(edit: if those are en-spaces in the original text as well, you have to use ~> in the Find field.)

This article was last modified on August 31, 2012

Comments (0)

Loading comments...