Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Remove duplicate from the same line..by hdb (Monsignor) |
on Jun 01, 2013 at 17:00 UTC ( [id://1036473]=note: print w/replies, xml ) | Need Help?? |
Adding .* after \1 in Atanasius' solution should do the trick as it matches everything up to the trailing \n.
In Section
Seekers of Perl Wisdom
|
|