ainoy31 Posted February 1, 2008 Share Posted February 1, 2008 Hello- I have the following info i need to extract out: Del Date/Time:</td><td class="text" width='90' bgcolor='#f5f5dc'><b>01/31/08<BR>11:20 AM</b></td> I have tried the following to just get the date out. //$pat = '~Del Date/Time:\</td><td class="text" width=\'90\' bgcolor=\'#f5f5dc\'\></b>.*?(\d{2}/\d{2}/\d{2})<BR\>~s'; preg_match_all($pat, $line, $matches); print_r($matches); My matches array is empty. Much appreciation. AM Link to comment https://forums.phpfreaks.com/topic/88964-extract-data/ Share on other sites More sharing options...
laffin Posted February 1, 2008 Share Posted February 1, 2008 maybe sumfin like $pat='~Del Date/Time:.*<b>(\d{2}/\d{2}\d{2}~ims' Link to comment https://forums.phpfreaks.com/topic/88964-extract-data/#findComment-455672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.