62,039
社区成员
发帖
与我相关
我的任务
分享
WebClient client = new WebClient();
byte[] byteArr = client.DownloadData(TextBox1.Text.Trim());
string htmlStr = System.Text.Encoding.GetEncoding("gb2312").GetString(byteArr);
MatchCollection matches = Regex.Matches(htmlStr, @"(?is)<div class=""mc fore tabcon"">(.*?)</div>");
foreach (Match match in matches)
Response.Write(match.Groups[1].Value);