private string getQuestType(string name)
{
string type = "";
WebClient client = new WebClient();
sendNotice("Fetching url http://eq2.zam.com/d...html?questname=" + name.Replace(" ", "+"));
String htmlCode = client.DownloadString("http://eq2.zam.com/db/questlist.html?questname=" + name.Replace(" ","+"));
string regex = @"(?<=<table .*>)(?=.*)(?=</table>)";
Regex ex = new Regex(regex, RegexOptions.IgnoreCase);
MatchCollection table = ex.Matches(htmlCode);
regex = "(?<=<tr>)(.*?)(?=</tr>)";
ex = new Regex(regex, RegexOptions.IgnoreCase);
string tbale = table[0].Value;
MatchCollection rows = ex.Matches(tbale);
type = rows[2].Value;
return type;
}
for some reason table dose not = an array so i think my regex is wrong can some one check it please a call that works getQuestType("Orc Defilement");