Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, In my program it gets the webpages html. I now need to get certain information from it. i need all the words between "> and </a>. You see it goes in a pattern. theres like 100 names on each webpage. The variable that has the webpages inofrmation is sdata can anyone help me? Thanks

 

 

<tr>

<td width="13%" bgcolor="#494949" align="center">302</td>

<td width="45%" bgcolor="#494949"><a href="profile.php?id=471916">jerkass</a></td>

<td width="19%" bgcolor="#494949">32,755</td>

<td width="23%" bgcolor="#494949">$4,225,896</td>

<td width="23%" bgcolor="#494949">$0</td>

</tr>

 

<tr>

<td width="13%" align="center">303</td>

<td width="45%"><a href="profile.php?id=1005793">Laser28</a></td>

<td width="19%">32,686</td>

<td width="23%">$0</td>

<td width="23%">$31,160,354</td>

</tr>

 

<tr>

<td width="13%" bgcolor="#494949" align="center">304</td>

<td width="45%" bgcolor="#494949"><a href="profile.php?id=869471">Mephew</a></td>

<td width="19%" bgcolor="#494949">32,534</td>

<td width="23%" bgcolor="#494949">$717,989</td>

<td width="23%" bgcolor="#494949">$100,000,000</td>

</tr>

Thanks for any Help!!!

-Rob

  • *Experts*
Posted
I would suggest you use Regular Expressions, and then look for the names using links as the pattern. MSDN has some good samples on using Regular Expressions, if you have some questions then post :).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...