Closed Thread
Results 1 to 2 of 2

Thread: Html Regex Help

  1. #1
    amitUser is offline Newbie
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    Html Regex Help

    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&nbsp;&nbsp;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&nbsp;&nbsp;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&nbsp;&nbsp;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&nbsp;&nbsp;L4C 5G2 </p> </td> ...


    what regex will parse the specified values without matching from the first <td> to the last </td>??

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    lobo521 is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    57
    Rep Power
    8

    Re: Html Regex Help

    If this is xhtml you can use xpath.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Regex matching
    By ch3etah in forum Java Help
    Replies: 2
    Last Post: 06-01-2011, 06:34 AM
  2. Need some help with Regex
    By Edvinas in forum C# Programming
    Replies: 3
    Last Post: 06-25-2010, 12:12 PM
  3. RegEx in C++
    By BlaineSch in forum C and C++
    Replies: 2
    Last Post: 11-14-2009, 12:02 AM
  4. Tutorial: C# Regex
    By NeedHelp in forum Tutorials
    Replies: 0
    Last Post: 06-28-2006, 09:27 AM
  5. Tutorial: C# Regex
    By NeedHelp in forum C# Programming
    Replies: 0
    Last Post: 06-28-2006, 09:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts