So I am designing a registration page and checking the username is alphanumeric.
else if(!eregi("^([0-9a-z])+$", $subuser)){
$form->setError($field, "* Username not alphanumeric");
I use that to do so. Is there any way I can get that to include underscores (_), dash (-), and spaces? Thanks