[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:


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,

More information about the thelist mailing list