110,532
社区成员
发帖
与我相关
我的任务
分享
Match match = Regex.Match(s, @"<tr[^>]*?>(?:[\s\S]*?/r-zz0072-287374-0-12-900.html[\s\S]*?)</tr>");
Console.WriteLine(match.Value);
Match match = Regex.Match(s, "<td[^>]*?><span[^>]*?><a href=\"http://[^/]*?/([^\"]*?)\"[^>]*?>");
Console.WriteLine(match.Groups[1].Value);
string str = File.ReadAllText(@"E:\1.txt", Encoding.GetEncoding("gb2312"));
Regex reg = new Regex(@"(?is)<tr[^>]*?>(?:(?!</?tr).)*?r-zz0072-287374-0-12-900.html.*?</tr>");
Console.WriteLine(reg.Match(str).Value);