use strict; use warnings; my $content = "my mom"; my $from = qr|my (mom)|; my $to = '"our ".$1'; $content =~ s/$from/$to/ee; print "$content\n";
-Mark
In reply to Re: Re: Advanced (or not) regular expression
by kvale
in thread Advanced (or not) regular expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |