Jump to content

Retrieving data between an Nth occurance of 2 tags.


dagnasty

Recommended Posts

This has been driving me nuts a week now.

Let's say I have HTML similar to this:

[code]
<tr><td>Name</td><td>Age</td><td>5</td><td>Date</td></tr>
[/code]

I want to get the data between an Nth occurance of a tag.

In english-like psuedocode:

get string between 3rd occurance of <td> and </td>

which would be 5.

Thanks guys.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.