title: preg_match return all parts in array
body: <p>I've got following php code:</p>
  
  <pre><code>$match = array();
  if (preg_match("%^(/\d+)(/test)(/\w+)*$%", "/25/test/t1/t2/t3/t4", $match))
      print_r($match);
  </code></pre>
  
  <p>I'm getting this result:</p>
  
  <pre><code>Array ( [0] =&gt; /25/test/t1/t2/t3/t4 [1] =&gt; /25 [2] =&gt; /test [3] =&gt; /t4 ) 
  </code></pre>
  
  <p>What do i need to change in my regexp to get this result:</p>
  
  <pre><code>Array ( [0] =&gt; /25/test/t1/t2/t3/t4 [1] =&gt; /25 [2] =&gt; /test [3] =&gt; /t1 [4] =&gt; /t2 [5] =&gt; /t3  [6] =&gt; /t4)
  </code></pre>