Or, without putting eval code in the replacement:$string=~s/([b-w]+)([^a]+)([a]+)/uc($1).$2.uc($3)/e;
$string=~s/([b-w]+)([^a]+)([a]+)/\U$1\E$2\U$3/;
In reply to Re: How to do multiple substitutions with one RegEx?
by graff
in thread How to do multiple substitutions with one RegEx?
by vennila
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |