title: How can check a minimum 3 characters in a given value ,using regular expression
body: <p>I have javascript code for checking the zipcode</p>
  
  <pre><code>var regexObj =
  /^(?=[^-]*-?[^-]*$)[0-9-]*[0-9]$/;
  </code></pre>
  
  <p>I need to add one more condition to this,ie </p>
  
  <p>make it so that user has to enter a minimum of 3 characters</p>
  
  <p>Can any one say, how can i modify my regular expression for that</p>