RobertP Posted June 15, 2012 Share Posted June 15, 2012 <table> <tr class="even_tr"> <td> 2012-06-15 </td> <td>git.gludoe.com</td> <td>963.00KB</td> </tr> </table> preg_match_all("/\<td\>(.*)\<\/td\>/",strip_tags($data,'<td>'),$matches); i remove all the html tags except td because some td's have <b> in them. Link to comment https://forums.phpfreaks.com/topic/264255-extracting-some-data-from-an-html-table/ Share on other sites More sharing options...
RobertP Posted June 15, 2012 Author Share Posted June 15, 2012 got it !! preg_match_all('/[<]td[>]([^<]*)[<][\/]td/i',strip_tags($data,'<td>'),$matches,PREG_PATTERN_ORDER); Link to comment https://forums.phpfreaks.com/topic/264255-extracting-some-data-from-an-html-table/#findComment-1354257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.