I am very new to PHP and have ben doing quite well (if I do say so myself) but I have hit a bit of a brick wall with regular expressions and wondered if anyone could point me in the right direction...
What I am trying to do is strip the url and content of an href into two separate variables, so
$link = "<a href=\"/media/press_releases/\">News & Press Releases</a>"
would end up as two variables...
$url = "/media/press_releases/";
$title = "News & Press Releases";
I assume I'm going to need to use preg_match, but my knowledge of regex's is abysmal and I'm not really understanding them properly.
Any help that can be given would be very much appreciated.