RegEx from a .txt file

Lanc1988

Contributor
Joined
Nov 27, 2003
Messages
508
I have no clue how to do any of the regex coding and ive heard its very difficult, but what i want to do seems like it shouldnt be too hard. heres what i need to do: i have my program save the source code for a webpage to a .txt file and then from that .txt file i need it to get quite a few different numbers and put them in labels.

here is a section of the source code that is saved in the .txt file:

Code:
<td><a href="hiscoreuser.cgi?username=lanc1988&category=0" class=c>Overall</a></td>
<td align="right">90,376</td><td align="right">
1,107
</td><td align="right">
5,465,684
</td>

ok.. now i need it to pick out the 90376, 1107, and 5465684.. now these numbers change alot but the code around them is always the same, so could someone write me a simple program that i can use as an example to do this? That code section is only one of about 10 of them. this regex code would be very nice to finally add to my program.. if you have any more questions or need any more info just tell me. thanks in advance :)
 
i dont think that would work since the ten sectons each have that, really the only thing different on each one is the 3 numbers and also the word, in that example the word is Overall.

here is two sections of the code so you can see what i mean:
Code:
<td><a href="hiscoreuser.cgi?username=lanc1988&category=0" class=c>Overall</a></td>
<td align="right">90,941</td><td align="right">
1,107
</td><td align="right">
5,465,732
</td></tr>

<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">126,920</td><td align="right">
66
</td><td align="right">
532,780
</td></tr>
 
yeah.. for each title (overall, attack, strength, etc..) there are 3 numbers associated with it and i would like it to get each three and put them in labels or i may use a listview using the details property for it.
 
Back
Top