[thelist] Javascript regular expression question
Judah McAuley
judah at wiredotter.com
Thu Apr 19 13:33:44 CDT 2007
Howdy, I'm trying to clean up text that is pasted into form fields in an
application. In particular, I'm trying to make sure I strip out all the
control characters. Generically, the regexes I'm trying to implement are:
[\x00-\x09]
[\x0B-\x0C]
[\x0E-\x1F]
[\x7F-\x9F]
The regex tester at regular-expressions.info tells me that
/[\x00-\x09]/g doesn't match my control character that I pasted in, but
it also doesn't tell me my regex is wrong either.
Any js regex folks want to help me out with the syntax?
Thanks in advance,
Judah
More information about the thelist
mailing list