RE: My java code 02-11-2015, 09:05 AM
#9
(02-03-2015, 12:45 AM)phyrrus9 Wrote: I wouldn't do it in Java, afaik sockets are a PITA. But if you know how to use them, just match a regexFrom personal experience and what others have said, regex tends to be the overly complicated way of parsing html, especially when you need to find lots of specific elements and such
start looking when this is matched:
Code:</table><br/> <table border="0" cellspacing="0" cellpadding="5" class="tborder"> <tr> <td class="thead" colspan="2"><strong>Richest Users</strong></td> </tr> <tr> <td class="tcat" width="50%"><strong>User</strong></td> <td class="tcat" width="50%" align="center"><strong>Amount</strong></td> </tr>
then, follow this format:
Code:<tr> <td class="trow1" width="50%"><a href="{link here}">{username}</a></td> <td class="trow1" width="50%" align="center">{amount}</td> </tr>
But regex could be used for this kind of stuff, just wanted to throw that it there that you probably shouldn't use overly complicated regular expressions for complex html parsing

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)