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)/
In reply to Re: Compiling Search/Replace Regexs
by fergal
in thread Compiling Search/Replace Regexs
by InterGuru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |