title: Regular expression for 10 digits or 11 digits
body: <p>Can anyone let me know the meaning of below regular expression patterns?</p>
  
  <pre><code>Pattern p1=Pattern.compile("^1?(\\d{10})");
  Pattern p2=Pattern.compile("^1?([1-9])(\\d{9})");
  </code></pre>