Hello, I am pulling out my hair trying to figure out how to parse this:
<td class=\"mainbodytext\"> <p><a href=\"/mapdetails.en.asp?transit=TO68&distance=0.57\">ESS O TIGER EXPRESS</a><br> 735 16TH AVE<br> RICHMOND HILL, ON L4C 7A8 </p> </td> <td class=\"mainbodytext\">Yes</td> <td class=\"mainbodytext\">No</td> <td class=\"mainbodytext\">No</td> <td nowrap class=\"mainbodytext\">0.57 km</td> <td nowrap class=\"mainbodytext\">0.57 km</td> </tr> <tr><td colspan=\"5\"><img src=\"images/1x1cccccc.gif\" width=\"100%\" height=\"1\" alt=\"\" border=\"0\"></td></tr> <tr valign=\"top\" bgcolor=\"#FFFFFF\"> <td class=\"mainbodytext\"><strong>2.</strong></td> <td class=\"mainbodytext\"> <p><a href=\"/mapdetails.en.asp?transit=TY66&distance=0.90\">HIG H TECH & BAYV AUD</a><br> BLDG C UNIT 1 - 365<br> RICHMOND HILL, ON L4B 4V9 </p> </td> <td class=\"mainbodytext\">No</td> <td class=\"mainbodytext\">Yes</td> <td class=\"mainbodytext\">No</td> <td nowrap class=\"mainbodytext\">0.90 km</td> </tr> <tr><td colspan=\"5\"><img src=\"images/1x1cccccc.gif\" width=\"100%\" height=\"1\" alt=\"\" border=\"0\"></td></tr> <tr valign=\"top\" bgcolor=\"#EEEEEE\"> <td class=\"mainbodytext\"><strong>3.</strong></td> <td class=\"mainbodytext\"> <p><a href=\"/mapdetails.en.asp?transit=TN63&distance=1.54\">SOU TH HILL SHOP CTR</a><br> 9325 YONGE ST<br> RICHMOND HILL, ON L4C 0A8 </p> </td> <td class=\"mainbodytext\">Yes</td> <td class=\"mainbodytext\">No</td> <td class=\"mainbodytext\">No</td> <td nowrap class=\"mainbodytext\">1.54 km</td> </tr> <tr><td colspan=\"5\"><img src=\"images/1x1cccccc.gif\" width=\"100%\" height=\"1\" alt=\"\" border=\"0\"></td></tr> <tr valign=\"top\" bgcolor=\"#FFFFFF\"> <td class=\"mainbodytext\"><strong>4.</strong></td> <td class=\"mainbodytext\"> <p><a href=\"/mapdetails.en.asp?transit=TX39&distance=1.59\">CAD ILLAC FAIRVIEW</a><br> 205 - 9350 YONGE ST<br> RICHMOND HILL, ON L4C 5G2 </p> </td> ...
what regex will parse the specified values without matching from the first <td> to the last </td>??
If this is xhtml you can use xpath.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks