This would work, for example:
foreach(@array) { $_ =~ s/(\w)\1/XY/g; print "$_ "; # --> dXYmon jXYz stXYr cXYXYar XYXYb XYXYXYXYXY +b }
In reply to Re: Replace every character that occurs more than one and their occurences are even
by almut
in thread Replace every character that occurs more than one and their occurences are even
by stringZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |