Adding .* after \1 in Atanasius' solution should do the trick as it matches everything up to the trailing \n.
In reply to Re^3: Remove duplicate from the same line..
by hdb
in thread Remove duplicate from the same line..
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |