Get specific content from web page with preg_match
<p>I want to get content (with all css, links working and so on) from specific web page part, which are in <code>&lt;div id="some-content"&gt;&lt;/div&gt;</code></p>

<pre><code>preg_match("/&lt;div id=\'some-content\'&gt;(.*)&lt;\/div&gt;/m", file_get_contents('www.xxx.com'), $output);
print_r ($output);
</code></pre>

<p>But it returns empty array: <code>Array ( )</code> </p>

<p>What is wrong? Is it problem with <code>preg_match</code> or with web page?</p>
