title: JavaScript regex for alphanumeric string with length of 3-5 chars
body: <p>I need regex for validating alphanumeric String with length of 3-5 chars. I tried following regex found from the web, but it didn't even catch alphanumerics correctly. </p>
  
  <pre><code>var myRegxp = /^([a-zA-Z0-9_-]+)$/;
  if(myRegxp.test(value) == false)
  {
      return false;
  }
  </code></pre>