62,052
社区成员
发帖
与我相关
我的任务
分享
string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));//读取tx
string pattern = @"<Repeater[^>]*?>[\s\S]*?</Repeater>|<[^>]*?>";
tempStr = Regex.Replace(tempStr,pattern,string.Empty);
Regex reg = new Regex(@"(?is){Bingding[^}]*?}(?![\s]+</Repeater>)");
MatchCollection mc = reg.Matches(source);
foreach (Match m in mc)
{
MessageBox.Show(m.Value);
}