日期:2014-05-17 浏览次数:20803 次
Regex r = new Regex(@"(?is)data-follow=""([^""]+)""");
foreach (HtmlElement he in myWeibo.Document.GetElementsByTagName("li"))
{
//Regex reg = new Regex(@"(?is)title=""([^""]+)"" href=""([^""]+)""");
if (he.GetAttribute("classname") == "clearfix")
{
Match mm = r.Match(he.InnerHtml);
MessageBox.Show(mm.Groups[1].Value);
}
}