in reply to form validation
Your regular expression seems to work fine.. it's kind of
hard to read, but I assume the regular expression is
supposed to be
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 Section
Seekers of Perl Wisdom