Vb Gangsta Posted October 1, 2003 Posted October 1, 2003 Hi, In my program it gets the webpages html. THe web sites URL is onder the variable url .I now need to get certain information from it. i need all the words between "> and </a>. You see it goes in a pattern. THe words are in red. theres like 100 names on each webpage. I am really desperate so could some one tell me in detail how to use regular expressions. Thanks very much <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> Quote Thanks for any Help!!! -Rob
wyrd Posted October 2, 2003 Posted October 2, 2003 (edited) Maybe something like this; <a\s+href="profile.php?id=\d+">(?<name>\w+)</a> Edited October 2, 2003 by wyrd Quote Gamer extraordinaire. Programmer wannabe.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.