title: Regex to match 10 or 12 digits only
body: <p>I tried to write a regex to match a 10 or 12 digits number combination. like:</p>
  
  <p>1234567890   - True<br>
   123456789012 - True<br>
   12345678901  - False<br>
   123456- False</p>
  
  <p>1234567890123- False</p>
  
  <p>Only match either 10 or 12 digits.
  I tried this:</p>
  
  <pre><code>"^[0-9]{10}|[0-9]{12}$"
  </code></pre>