title: Phone Number Regular Expression
body: <p>Basically I am looking for a regular expression for phone numbers.</p>
  
  <p>Inputs can be:</p>
  
  <pre><code>009133434343443434
  +92333232323232
  0223323232
  0345*
  021*
  </code></pre>
  
  <p>What I have tried</p>
  
  <pre><code>^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$
  </code></pre>
  
  <p>Maximum number of characters in my field can be 20 and least number of fields can be 3 but by the above reg ex i am unable to find appropriate results.</p>
  
  <p><code>*</code> can only come in end<br>
  <code>+</code> can only come at the start of string.</p>