title: How write correct Regex for mobile number must start some from specific number or characters? MVC
body: <p>I want to enter only numbers staring from 92 0r 03. It should accept only 12 character if starting from 92 but it should accept only 11 characters if starting from 03. for example (92307XXXXXXX) or (0307XXXXXXX). I have written a regex but its now working. It says invalid number upon entering right format. Please help.</p>
  <pre><code> [RegularExpression(@&quot;^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$&quot;, ErrorMessage = &quot;Invalid Mobile Number.&quot;)]
  </code></pre>