Error when get data when using regex in php
<p>I have a sample code:</p>

<pre><code>&lt;?php
$adr = 'http://www.proxynova.com/proxy-server-list/country-gb/';
$c = file_get_contents($adr);
if ($c){ 
    $regexp = '#&lt;td&gt;(.*?):(\d{1,4})&lt;/td&gt;#';
    $matches = array(); 
    preg_match_all($regexp,$c,$matches); 
    print_r($matches);
    if (count($matches) &gt; 0){ 
       foreach($matches[0] as $k =&gt; $m){ 
          $port = intval($matches[2][$k]); 
          $ip = trim($matches[1][$k]); 
       } 
    } 
} 
</code></pre>

<p>I using <code>$regex = '#&lt;td&gt;(.*?):(\d{1,4})&lt;/td&gt;#';</code> to get data inculde ip and port, but result is null, how to fix it !</p>
