in reply to RegEx - Using Templates

Though your question has been answered there is some good discussion in $1 in variable regex replacement string about this sort of thing.

-enlil