to:$_ =~ s/^is$/are/g ;
You want word boundary anchors. See perlre.$_ =~ s/\bis\b/are/g ;
In reply to Re: regex is not producing desired output
by toolic
in thread regex is not producing desired output
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |