title: Is there a way to match recursively/nested with regex? (PHP, preg_match_all)
body: <p>How can I match both <code>(http://[^"]+)</code>'s?:
  </p>
  
  <pre class="lang-none prettyprint-override"><code>&lt;a href="http://yoursite.com/goto/http://aredirectURL.com/extraqueries"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>(I know it's an illegal URL, but same idea)</p>
  
  <p>I want the regex to give me these two matches:</p>
  
  <pre class="lang-none prettyprint-override"><code>1 http://yoursite.com/goto/http://aredirectURL.com/extraqueries
  2 http://aredirectURL.com/extraqueries
  </code></pre>
  
  <p>Without running multiple preg_match_all's</p>
  
  <p>Really stumped, thanks for any light you can shed.</p>