Trying the latest suggestion...
$s = "foooobaaaarrr";
print "Before: $s\n";
$newword = join '', split(/((\w)+)\2(\1{0,1})/, $s);
print "After: $newword\n";
Result: no change. Not hereabouts, anyway.
In reply to RE: Re: removing duplicate letters
by Anonymous Monk
in thread removing duplicate letters
by eduardo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |