\W? So basically...
Code:
if ($1- !isalnum)

...except that \W also includes the _ character.