Hello,
I'm going batty trying to figure this one out as it seems so simple. I'm trying to retrieve the url (everything between href=\" and \">):
$string = "lalala this is great: <a href=\"http://www.google.com\"> google </a> blar blar";
$pattern = "http*\">";
preg_match($pattern,$string,$matches);
But of course that doesnt work, so what should be my pattern?
Thanks in advance,
Emrys