title: Digit or Number limit with exact match on Python Regex
body: <p>I'm using Python 2.7.3 I have the following function: </p>
  
  <pre><code>def is2To4Numbers(q):
      if re.match('[0-9]{2,4}',q):return True
      else: return False
  </code></pre>
  
  <p>I'm trying to limit the number of digits from 2 to 4. But I get these results.</p>
  
  <pre><code>&gt;&gt;&gt; is2To4Numbers('1235')
  True
  
  &gt;&gt;&gt; is2To4Numbers('1')
  False
  
  &gt;&gt;&gt; is2To4Numbers('12345')
  True
  
  &gt;&gt;&gt; is2To4Numbers('1234567890')
  True
  </code></pre>
  
  <p>I can't seem to get the right limit. How should i solve this? Are there other ways other than using {m,n}? Or am I even using {m,n} correctly?</p>