title: Python regex, match more than one integer
body: <p>The below code prints white space and not '11' and I can't figure out why. Replacing <code>[0-9]*</code> with <code>[0-9]{1,2}</code> prints '11'. Can any one help?</p>
  
  <pre><code>import re
  test_string = 'cake_11xlfslijg'
  pattern = '.*(?P&lt;order&gt;[0-9]*)'
  result = re.compile(pattern).search(test_string)
  if result:
      print 'result'
      print result.group('order')
  else:
      print result
  </code></pre>