Alphanumeric and more
<p>So I am designing a registration page and checking the username is alphanumeric.</p>

<pre><code>         else if(!eregi("^([0-9a-z])+$", $subuser)){
        $form-&gt;setError($field, "* Username not alphanumeric");
</code></pre>

<p>I use that to do so. Is there any way I can get that to include underscores (_), dash (-), and spaces? 
Thanks</p>
