preg match php a-zA-Z0-9 and space
<pre><code>if (preg_match ('/[^a-zA-Z0-9]/i', $getname)) {
</code></pre>

<p>i use this preg_match pattern to check if a string in php contains other charachters than <code>a-zA-Z0-9</code>. i want to add to the pattern the space...i use '<code>/[^a-zA-Z0-9 ]/i'</code> but is not working ... how should i do it? </p>

<p>i want to allow spaces including <code>a-zA-Z0-9</code></p>
