Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I made a simple project that gets the source code of a website then puts it in a rich text box.

 

But i also want it to then look through the code for some numbers (these numbers change because they are the high scores for a game)

 

Here is a section of the source code:

<tr><td><img src="http://www.runescape.com/img/hiscores/attack.gif" valign="bottom" width=16 height=16 /></td><td> </td>
<td><a href="hiscoreuser.cgi?username=lanc1988&category=1" class=c>Attack</a></td>
<td align="right">48,303</td><td align="right">
66
</td><td align="right">
514,250
</td></tr>

 

I need to get the number 48,303 and put it in a label, get 66 and put it in another label, then get 514,250 and put it in another label..

 

If anyone can figure this out it will help me alot because Ive been trying to do it for a long time now.

 

Thanks.

Posted
the only html that changes is those numbers.. and i have never used regular expressions before, so if someone could post the code I could use to get those 3 numbers from that code, then I could use it as a guide to get all of the other things I need from the rest of the html.

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...