First off, you don't need to negate the return value of the regular expression.. it's fine as it is. The only suggestion I could give would be that you might instead want to simplify by saying:/[^a-zA-Z0-9_]/
As the \w metacharacter is equal to exactly a-zA-Z0-9_. To simplify further:/[^\w]/
As \W is the opposite of \w/\W/
In reply to Re: form validation
by plaid
in thread form validation
by damian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |