Hello everyone,
I am trying to extract some stuff from a page, the following is what i have so far.
$content = file_get_contents ( "http://www.dfo-mpo.gc.ca/media/news-presse-eng.htm" );
echo preg_match_all("/<li>(<[^\r]*?)<\/li>/", $content, $maches,PREG_SET_ORDER);
echo "<pre>";
print_r ( $maches );
echo "</pre>";
If you view the source on that page you will see I am trying to extract whatever is in <li> and </li> and contains a hyperlink inside <li> and </li>
I'm been trying so hard with no luck. I have the regex testbed that I test the regex, it works there but not with php.
I would appreciate for your help.
Thanks