byte[] bt1 = wc1.DownloadData(@"网址");
Encoding enc = Encoding.GetEncoding("utf-8");
string res1 = enc.GetString(bt1);
Regex kaiben = new Regex("<div class=\"digest\"><p><span style=\"font-size: 14px\">.*?</span></p></div>");
if (kaiben.IsMatch(res1))
{
string kaiben1 = kaiben.Match(res1).Value.ToString();
kaiben1 = Regex.Replace(kaiben1, "<div class=\"digest\"><p><span style=\"font-size: 14px\">", "");
kaiben1 = Regex.Replace(kaiben1, "</span></p></div>", "");
Response.Write(kaiben1.Trim() + "<br>");
}
明明在res1中有kaiben,就是找不到,为什么?不知道哪里出错了