Displaying 1 result from an estimated 1 matches for "asfixedregex".
2009 Nov 13
3
Escaping regular expressions
Hi all,
Is there a method for escaping strings to be used regular expressions?
i.e. if I have a user supplied string that I'd like to use as a fixed
component is there a method that will turn (e.g.) ".$^" into
"\\.\\$\\^" ?
Thanks,
Hadley
--
http://had.co.nz/