in reply to regular expression problem

"interpolation". Interpolating backreferences in an eval, reinterpolation of regexp (and strings?), Evaluating $1 construct in literal replacement expression