in reply to Re^2: How to do regex backreferences within $variable replacement text?
in thread How to do regex backreferences within $variable replacement text?

Sorry, coffe effect still applies: it needs two eval switches (now updated).

You can't do it without evaluation in some form. You could parse the replaced string for $n's and then replace those with their respective captured text. I'll post something in a while


Perl is Huffman encoded by design.
  • Comment on Re^3: How to do regex backreferences within $variable replacement text?