title: Regular expression for 2 or 5 digits
body: <p>How do I write a regular expression that can match only numbers with 2 or 5 digits?</p>
  
  <p>I have this so far but it matches any number with 2 to 5 digits. </p>
  
  <pre><code>           ^\d{2,5}$
  </code></pre>