110,533
社区成员
发帖
与我相关
我的任务
分享
StreamReader reader = new StreamReader("c:\\temp\\1.txt",Encoding.Default);
string source = reader.ReadToEnd();
Regex reg = new Regex(@"(?is)<tr class=""dataBack[\d]+"">[\s]+<td>([^<>]+)</td>[\s]+<td>([^<>]+)</td>[\s]+<td>([^<>]+)</td>[\s]+</tr>");
MatchCollection mc = reg.Matches(source);
foreach (Match m in mc)
{ MessageBox.Show(m.Groups[1].Value+":"+m.Groups[2].Value+":"+m.Groups[3].Value);
}