How do I create a preg_match for something like this?

<TD CLASS="time" ALIGN="CENTER" VALIGN="MIDDLE"><!-- insert time --> <B>7 PM</B></TD>
<TD BGCOLOR="#BFD8F6"><IMG SRC="spacer.gif" WIDTH="1" HEIGHT="1" BORDER="0" ALT=""></TD>


I want to store the individual times in an array and then loop through them if that makes sense...

I tried this but when i try to echo the results back out it doesnt work....

<?
preg_match_all("|<TD CLASS=\"time\" ALIGN=\"CENTER\" VALIGN=\"MIDDLE\"><!-- insert time --> <B>(.*)</B></TD>\n
<TD BGCOLOR=\"#BFD8F6\"><IMG SRC=\"spacer.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=\"0\" ALT=\"\"></TD>\n|U",$read,$result);
?>




<? echo $result[1][0]; ?>


Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: [EMAIL PROTECTED] ICQ: 38823829 / AIM: bayoujf / MSN: bayoujf / Yahoo: bayoujf



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to