in reply to Re^2: Elegant way to escape a string in a regex
in thread Elegant way to escape a string in a regex

If you use fixed templates, maybe consider sprintf or - depending on the number of templates - just variable interpolation.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^3: Elegant way to escape a string in a regex