C# regex data from website -
C# regex data from website -
i trying create addon game named tibia.
on website tibia.com can search people , see deaths.
forexample:
http://www.tibia.com/community/?subtopic=characters&name=kixus
now want read deaths info using regex in c# application.
but cannot seem work out, i've been spending hours , hours on
http://myregextester.com/index.php
the look utilize :
<tr bgcolor=(?:"#d4c0a1"|"#f1e0c6") ><td width="25%" valign="top" >(.*?)?#160;cet</td><td>((?:died|killed) @ level ([^ ]*)|and) (?:<[^>]*>)?([^<]*).</td></tr>
but cannot create work.
i want timestamp, creature / player level, , creature / player name
thanks in advance.
-regards
it's bad thought utilize regular expressions parse html. they're poor tool job. if you're parsing html, utilize html parser.
for .net, usual recommendation utilize html agility pack.
c# regex
Comments
Post a Comment