Jump to content

Fetch html table data


MarcusZ

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.