Regex...
Posted: Sun Aug 29, 2004 6:26 pm
Hey, I need to find a way to get the contents of a particular web page...
The contents i want to match are like this:
<b><font size=2>CONTENTS (some <BR> tags)</font></b>. I've tried lots of regex strings but none of them seem to work. I need to figure out what CONTENTS is.
preg_match('#<b><font size=2>(.*)</b>#', $html, $matches);
echo $matches[1];
and nothing seems to happen.
Any help is appreciated.
The contents i want to match are like this:
<b><font size=2>CONTENTS (some <BR> tags)</font></b>. I've tried lots of regex strings but none of them seem to work. I need to figure out what CONTENTS is.
preg_match('#<b><font size=2>(.*)</b>#', $html, $matches);
echo $matches[1];
and nothing seems to happen.
Any help is appreciated.