in reply to delayed variable interpolation in a regular expression
Doing a Super Search for "substitute", I found an old node of mine where I show how to do this without the "dangerous" 'e' operator. I hope that helps.