title: How do I handle this kind of condition in Javascript
body: <p>I have a text field which  has the regex validation and it should not accept value "0".
  whether I need to use "and" condition (or) "OR CONDITION" in the below if condition </p>
  
  <pre><code>var regex = /^[0-9][0-9]{0,3}$|^[0-9][0-9]{0,3}[\.][0-9]$/;
  if(!regex.test($('#text1').val()))
  {  
     alert("please ");     
  }
  </code></pre>