MarcusZ Posted June 23, 2010 Share Posted June 23, 2010 Hi, I need som help with a regex to get specific cells in a table, and print them in a "text table": cell 1,1 - cell 1,3 - cell 1,5 cell 2,1 - cell 2,3 - cell 2,5 and so on..... This is how a row in the table looks like: <tr class="start" id="start_44712"> <td class="start_no">(1)</td> <td class="club_or_flag_logo"><img alt="" border="0" src="http://logoprovider.equipe.nu/logos/svrf/532b3197b9a2a0ef5222205a9b7820b2.png?width=48&height=48&strategy=logo&bg=ffffff&id=1853" /></td> <td class="starttime">09:00</td> <td class="club"><a name="start_44712"></a><strong><a href="http://online.equipe.nu/sv-SE/riders/13730/starts">Marie Andersen</a></strong><span>Eklunda RF</span><span class="pimp_my_ride"></span></td> <td class="pedigree"><strong><a href="http://online.equipe.nu/sv-SE/horses/16881/starts">Karina Lihmskov</a></strong><span>Blue Hors Don Romantic - Temple Wind</span><span>Vibeke Kjellerup</span></td> <td class="start_no">354</td> </tr> The cells I want to fetch are: (1) - 09:00 - Marie Andersen - Eklunda RF - Karina Lihmskov and so on... The rest of the tables rows are formatted in the same way. Is it too complicated to code this? Thanks Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted June 28, 2010 Share Posted June 28, 2010 I highly reccommend using a DOMDocument Model when dealing with HTML Code. http://php.net/manual/en/class.domdocument.php More specifically: http://www.php.net/manual/en/domxpath.query.php -cb- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.