Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now look it (does not work):$content =~ s/my (mom)/our \1/;
How can I resolve it?my $from = "my (mom)"; my $to = "our \\1"; $content =~ s/$from/$to/;
Edited by Chady -- added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advanced (or not) regular expression
by japhy (Canon) on Apr 23, 2004 at 02:00 UTC | |
by kvale (Monsignor) on Apr 23, 2004 at 02:54 UTC |