in reply to Compiling Search/Replace Regexs
If you want to vary the right hand side depending on $lhs then you could dos/$lhsCompiled{$lhs}/XXX$1/
so that each left hand side can have a corresponding right hand side.s/$lhsCompiled{$lhs}/&{$rhsSubs{$lhs}}($1)/
|
|---|