title: javascript regex to allow numbers and special characters but not zeroes only
body: <p>I need a javascript regex for validation of numbers that are phone numbers. The numbers cannot be a single zero or only zeroes.</p>
  
  <p>e.g</p>
  
  <pre><code>0
  000
  00000-000-(000)
  </code></pre>
  
  <p>these are not allowed. </p>
  
  <p>But these are allowed:</p>
  
  <pre><code>01-0808-000
  10(123)(1234)
  11111
  </code></pre>
  
  <p>The javascript regex I have so far is:</p>
  
  <pre><code>  /^[!0]*[0-9-\)\(]+$/
  </code></pre>
  
  <p>But this does not seem to work.</p>
  
  <p>The rule is the phone number can contain numbers and <code>-</code> and <code>(</code> and <code>)</code>. It can start with a 0  but the phone number cannot be a single 0 or a number of zeroes only with or without the above characters.</p>
  
  <p>Could you point me in the right direction.
  Thanks in advance.</p>