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
In reply to Re^3: How to do regex backreferences within $variable replacement text?
by GrandFather
in thread How to do regex backreferences within $variable replacement text?
by ManFromNeptune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |