title: How to match exactly 3 digits in PHP's preg_match?
body: <p>Lets say you have the following values:</p>
  
  <pre><code>123
  1234
  4567
  12
  1
  </code></pre>
  
  <p>I'm trying to right a preg_match which will only return true for '123' thus only matching if 3 digits. This is what I have, but it is also matching 1234 and 4567. I may have something after it too.</p>
  
  <pre><code>preg_match('/[0-9]{3}/',$number);
  </code></pre>