Underscore is not considered an alphanumeric character. It is considered a word character (hence the \w character class.)$ perl -le 'print "hello_world" =~ /^\w+$/ ? "OK" : "BAD"' OK ---> underscore is considered alphanumeric character.
In reply to Re^2: check if string contains anything other than alphanumeric
by jwkrahn
in thread check if string contains anything other than alphanumeric
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |