troubleshooting Question

Extract data from html <td> tags using vb6

Avatar of Jay Balu
Jay Balu asked on
ProgrammingVisual Basic Classic
15 Comments1 Solution492 ViewsLast Modified:
Hello,

Could you please help with a solution to extract specific data between repeating <td> tags? I have attached the input file for review. Here is an example of what I want:
From the code below, I want to extract the text (without the quotes)  - "http://gmatclub.com/forum/if-d-9-2d-then-d-41301.html"

I tried a different approach - reading the text file line by line and parsing each line for "href" and "title" combo but was not exactly successful. So, I'd appreciate a solution in stead of a reference as I have already wasted several hours looking for a possible solution. Thanks!

<td class="topicsName" style="width:100%">
<a class="newestPostIcon" href="http://gmatclub.com/forum/viewtopic.php?f=140&amp;t=41301&amp;view=unread&amp;sid=e529503533ca87ee136c986f3c5d6e66#unread"><img src="./styles/gmatclub_light/imageset/icon_topic_newest.png" width="18" height="10" alt="View first unread post" title="View first unread post" /></a>
<a href="http://gmatclub.com/forum/if-d-9-2d-then-d-41301.html" title="If |d - 9| = 2d, then d= (A) -9 (B) -3 (C) 1 (D) 3 (E) 9" >
<span class="topicTitle">If |d-9| = 2d, then d=</span>
</a>
&nbsp;
<p> 
Tags:&nbsp;<a href="./search.php?search_id=tag&tag_id=217&amp;sid=e529503533ca87ee136c986f3c5d6e66">Difficulty: Sub-600 Level</a>, &nbsp;<a href="./search.php?search_id=tag&tag_id=58&amp;sid=e529503533ca87ee136c986f3c5d6e66">Absolute Values/Modules</a>																					</p>
<p>in <a href="http://gmatclub.com/forum/gmat-problem-solving-ps-140/">GMAT Problem Solving (PS)</a></p>
</td>
PageHTML.txt
ASKER CERTIFIED SOLUTION
aikimark
Get vaccinated; Social distance; Wear a mask
Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros