title: phone number regex not working
body: <p>I have a form with an input that follows this pattern:</p>
  
  <pre><code>pattern='(\+|00)\d{2,3}[-]\d{8,10}'
  </code></pre>
  
  <p>an example would be <code>+999-123456789</code></p>
  
  <p>I have to form validate it again using javascript and have tried to convert the pattern into a Regex, the example passes the pattern but fails passing the regex. Any idea as to why?</p>
  
  <pre><code>var check = /^([00|+])([0-9]{2,3})[-]?([0-9]{8,10})$/;
  </code></pre>