I have some unstructured text I need to match each td city and whatever the text it has to the next the city, but not to include the last td city, then from the last one to the next and so on:
for example: (i need to get all the text starting from <tr><td class="city" till before the next <tr><td class="city")
<tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="Bloomington"><h2>Bloomington</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td>rwerjlkrw</tr>
<tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="Abb"><h2>abb</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td><class type></tr>
<tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="acc"><h2>acc</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td><tr>fdf</tr></tr>
the text look like this
<tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="Bloomington"><h2>Bloomington</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td></tr><tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="Abb"><h2>abb</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td></tr><tr><td class="city" colspan="6"><p><a href="#home">Top</a><br /><br /><a name="acc"><h2>acc</h2></a></p></td></tr><tr><td class="blank"> </td><td class="day" colspan="5">Monday</td></tr>