|
Posted by Sam Waller on 06/10/07 15:23
I need a regular expression for preg_match to find all of the strings between
'>' and '<' from html. Eg.
1. <TD><FONT SIZE='2'>XXX</FONT></TD>
2. <TD><FONT SIZE='2'><A HREF=http://www.whatever.com/...7>ZZZ</A></FONT></TD>
3. <TD ALIGN=CENTER><FONT SIZE='2'>Y/Y</FONT></TD>
#1 matches should be "", "XXX", and ""
#2 should be "", "", "ZZZ", "", ""
#3 should be "", "Y/Y", ""
Actually I need only the non-empty strings, but I can just ignore the empty ones.
I've tried preg_match("/>(.*)</i", $str, $matches) but it doesn't work like I want.
Does anyone know how to get this to work?
thanks,
Sam
Navigation:
[Reply to this message]
|