title: Regex Expression to Find 5-Digit Code
body: <p>Trying to find pattern matches based on the following conditions:</p>
  
  <ul>
  <li>Length of string is 5 characters</li>
  <li>Char [0] = Letter/Number</li>
  <li>Char [1] = Letter</li>
  <li>Char [2-4] = Number</li>
  </ul>
  
  <p>I don't understand why "22222" works for this expression?</p>
  
  <pre><code> p = r'(\w|\d)(\w)(\d){3,}'
   m = re.match(p, "AA012")    # Works as expected
   --&gt; 'AA012'
  
   m = re.match(p, "1A222")    # Works as expected
   --&gt; '1A222'
  
   m = re.match(p, "22222")    # Does NOT work as expected!
   --&gt; '22222'
  </code></pre>
  
  <p>What am I missing in my regex expression syntax?</p>