title: preg_match - simple issue with trying to get sequence of digits
body: <p>I'm trying to do a fairly simple extraction in PHP:</p>
  
  <pre><code>$empAward = 'AMW10';
  if (preg_match("/\w+(\d+)/",$empAward,$matches)) {
      $level = $matches[1]; // Wanted '10', but getting '0'
  }
  echo "Level is " . $level . "\n";
  </code></pre>
  
  <p>I was hoping my regex would capture the last 2 digits, however it appears to grab only the last digit, in this case 0. I wanted to get 10.
  Can someone explain what I'm doing wrong here? I though the specification of \d+ would keep going till it got hold of all digits, but it just gets the last character alone. Could this be something to do with being 'greedy' or whatever it's opposite is ('generous'?!)</p>
  
  <p>Thanks guys
  Pete</p>