title: How to return only needed match with preg_match
body: <p>I am trying to parse a integer from a list of uris like this:</p>
  
  <pre><code>uri.com/upload/123456789_abc.ext
  </code></pre>
  
  <p>I am using this pattern:</p>
  
  <pre><code>preg_match( "#uri\.com\/upload\/(.*?)_#is", $uri, $match );
  </code></pre>
  
  <p>Which works and returns:</p>
  
  <pre><code>Array
  (
      [0] =&gt; uri.com/upload/123456789_
      [1] =&gt; 123456789
  )
  </code></pre>
  
  <p>But I was wondering if there's a way to make $match == "123456789" intead of returning an array with multiple values.</p>
  
  <p><strong>Is it possible to do it by only modifying the pattern?</strong></p>