P is for Practical | |
PerlMonks |
Re: How to remove duplicate characters in a string in placeby hdb (Monsignor) |
on Feb 20, 2016 at 17:58 UTC ( [id://1155722]=note: print w/replies, xml ) | Need Help?? |
I have no better solution than to do a loop but your regex always removes pairs of characters, so if you have an odd number of a character one will remain. Is that what you want?
In Section
Seekers of Perl Wisdom
|
|