Get div and the correct close tag preg
<p>Now preg has always been a tool to me that i like but i cant figure out for the life if me if what i want to do is possible let and how to do it is going over my head</p>

<p>What i want is preg_match to be able to return me a div's innerHTML the problem is the div im tring to read has more divs in it and my preg keeps closing on the first  tag it find</p>

<p>Here is my Actual code</p>

<pre><code>$scrape_address = "http://isohunt.com/torrent_details/133831593/98e034bd6382e0f4ecaa9fe2b5eac01614edc3c6?tab=summary";
$ch = curl_init($scrape_address);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, '1'); 
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_ENCODING, "");
$data = curl_exec($ch);

preg_match('% &lt;div id="torrent_details"&gt;(.*)&lt;/div&gt; %six', $data, $match);
print_r($match);
</code></pre>

<p>This has been updated for TomcatExodus's help</p>

<p>Live at :: <a href="http://megatorrentz.com/beta/details.php?hash=98e034bd6382e0f4ecaa9fe2b5eac01614edc3c6" rel="nofollow">http://megatorrentz.com/beta/details.php?hash=98e034bd6382e0f4ecaa9fe2b5eac01614edc3c6</a></p>
