title: need a Regex for validating alphanumeric with length 6 to 25 characters
body: <p>i have created this regular expression for my form validation of password feild</p>
  
  <pre><code>"/^[[A-Za-z0-9]+[A-Za-z0-9, .!@#$%^&amp;*()_]*]{3,25}$/",
  </code></pre>
  
  <p>it accepts all alphanumeric characters and special characters BUT special characters only is not acceptable .</p>
  
  <p>The problem is with the length check :(</p>
  
  <p>it should be like the following</p>
  
  <pre><code>Valid: aaaaaaaaa 
  Valid: 111111111
  Valid: 11111n11111
  Valid: nnnn1jkhuig
  InValid: @@@@@@@@
  </code></pre>
  
  <p>but it is throwing error on </p>
  
  <pre><code>aaaaaaaaaaaa
  </code></pre>
  
  <p>as well</p>