Note these things:$string =~ s/([a-zA-Z])\1/${1}2/g;
Please read perlretut for more.$string =~ s/([a-z])\1/${1}2/ig;
In reply to Re: perl search and replace
by japhy
in thread perl search and replace
by LeukvoorJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |