Php regular expression issue
<p>This is my regular expression which accept only string and number characters..otherwise it's say "Only string charactes are allow. ex; a-z or 0-9".</p>

<pre><code>preg_match("/^[a-zA-Z0-9]+$/", $uname) != 1
$err[] = "Only string charactes are allow. ex; a-z or 0-9";
</code></pre>

<p>But if i write a text with space like(text space) then it's say "Only string charactes are allow. ex; a-z or 0-9".</p>

<p>Where is wrong in my code.?</p>
