[thelist] Re: Regex back reference problem.

throwaway at gmontague.co.uk throwaway at gmontague.co.uk
Mon Dec 22 18:24:25 CST 2003

Alas, neither of the two solutions work.

1. The /e modifier may work but I can't be sure of the contents of the regex so
evaluating it as php is out the window on security grounds.

2. hex encoding the first digit (2 to \x32) doesn't work because the character
is still read as '2' by the time it gets to the string replacement stage.

Oh well, back to the perldoc and 'Mastering regex' books. :-)

Thanks anyway.

More information about the thelist mailing list