title: Exclude only 0 in regular expression javascript
body: <p>I want to create a regular expression which will take one to ten numeric value but it should not accept if only 0's are provided</p>
  
  <p>for example</p>
  
  <pre><code>1 is valid input
  1111123455 is valid input
  01 is valid input
  010 is valid input
  0000 is not valid input
  0 is also not valid input
  0000000000 is also not valid input 
  </code></pre>
  
  <p>i tried regex </p>
  
  <pre><code>^([0-9]{1,10}|)$
  </code></pre>
  
  <p>which accepts ten numeric but how to avoid only 0's</p>