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.
In reply to Advanced (or not) regular expression by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |