i am using the following to extract link's from a html page stored in a string
preg_match_all("/<a href=\"http:\/\/(.*)<\/a>/", $html_string, $out_href);
however, it's not working. I believe it may be due to the fact that sometimes the links show up in the page across a couple lines, although i don't see why that would prevent it from working...here is an example of some of the html page
<br><p><a href=http://mysite.com?
s=APY6_eRS1QXVzdHJh&ao=19632386>
<b>Searchterm</b> Headline<b>...</b>
</a><br><font size=-1><font color=green>Source</font>
- Date</font><br><font size=-1> <b>...</b>
any idea's? i should add that the <a href> changes...it's not always in the same position, sometimes it goes to a newline and other times it does not