You can also do:
$str =~ s{((.)\2*)}{join'x',split(//,$1)}eg;
Hope this helps,,,
Aziz,,,
In reply to Re: Matching double characters and insertion
by abstracts
in thread Matching double characters and insertion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |