title: Regular expression for mobile number vaidation?
body: <p>I have following regular expression for following mobile numbers:</p>
  
  <pre><code>^(([+]|[0]{2})([\\d]{1,3})([\\s-]{0,1}))?([\\d]{10})$
  </code></pre>
  
  <p>Valid numbers are:</p>
  
  <pre><code>+123-9854875847
  00123 9854875847
  +123 9854875847
  9878757845
  </code></pre>
  
  <p>Above expression will not validate if user enter 9 or 11 digit mobile number but if user enter 9 or 11 digit number with <code>+123</code> or <code>+91</code> respectively then it is getting validate because in this part of expression <code>([\\d]{1,3})</code> last two digits are optional.</p>
  
  <p>So, any way to make this part <code>([\\s-]{0,1}))?([\\d]{10})</code> not to get combine with this part <code>([\\d]{1,3})</code>?</p>