In the above code,I want to upper case both the $1 and $2 in the string.How to do it?use strict; use warnings; my $string="welcomezxyaaaaa"; $string=~s/([b-w]+)[^a]+([a]+)/uc($1)/ge; print $string;
In reply to How to do multiple substitutions with one RegEx? by vennila
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |