in reply to Re^2: Pass Matched Variable into Regex Replace Variable
in thread Pass Matched Variable into Regex Replace Variable
$r="\"end{$1}\"";
The double quotes interpolate the $1. Use $r=q("end{$1}") in this case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pass Matched Variable into Regex Replace Variable
by deMize (Monk) on Dec 17, 2010 at 20:25 UTC |