in reply to $1 in variable regex replacement string
Note that this involves an eval so you should be very, very careful what you feed it.my $repl = '$1 '; $repl =~ s/\"/\\"/g; $repl = qq{"$repl"}; $str =~ s/$path/$repl/eeg;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: $1 in variable regex replacement string
by tachyon (Chancellor) on Feb 12, 2003 at 21:34 UTC | |
by tadman (Prior) on Feb 12, 2003 at 22:32 UTC | |
by jsprat (Curate) on Feb 13, 2003 at 01:57 UTC | |
by tachyon (Chancellor) on Feb 12, 2003 at 22:48 UTC | |
by belden (Friar) on Feb 13, 2003 at 01:32 UTC | |
by tadman (Prior) on Feb 14, 2003 at 03:26 UTC | |
| |
Re: Re: $1 in variable regex replacement string
by dvergin (Monsignor) on Feb 12, 2003 at 18:35 UTC | |
Re^2: $1 in variable regex replacement string
by RaptorRex (Acolyte) on Aug 17, 2007 at 15:55 UTC |