Hi,
I'm working on regular expression to find a whole heap of text that sits inside
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and a tag that says end of menu... which looks like this:
<!--END MENU-->
This is the code i wrote but it's not spitting out the matching text:
$value = preg_match('/^<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">(.*?)<!--END MENU-->/',$content, $matching_text);
echo $matching_text[0]
Can anyone help me with this please?
Thanks in advance :)