javascript regex test() function gives always true
<p>In javascript i am using the following regular expression to check whether the input string is 6 characters long and it should contains only alphabets and digits, </p>

<pre><code>var name = "a";
if(/[0-9a-zA-Z]{6,}/.test(name))
{  }
</code></pre>

<p>But this gives always true. Whats the problem ?</p>
