in reply to Another (maybe stupid) regex question ...
$text2 =~ s/(\Q$text1\E)/FOO$1BAR/;
perldoc perlre for more information. I hope this helps you with your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Another (maybe stupid) regex question ...
by Anonymous Monk on Nov 17, 2003 at 15:13 UTC |