title: Why does this string not match the pattern
body: <p>I expected the word <code>'789'</code> to match my pattern <code>'\b[7][8-9]{2}\b'</code> in the following example:</p>
  
  <pre><code>def test_4(self):
      text = 'asdf 2345 gfdf 44 dfg 79878 dsfg 78998 sdfg 789 7989 '
      pattern = '\b[7][8-9]{2}\b'
      match = re.search(pattern, text)
      if match:
          print(pattern)
          print(match.group())
  </code></pre>
  
  <p>Why does the text not match the pattern?</p>