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
would end up as two variables...PHP Code:
$link = "<a href=\"/media/press_releases/\">News & Press Releases</a>"
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.PHP Code:
$url = "/media/press_releases/";
$title = "News & Press Releases";
Any help that can be given would be very much appreciated.