日期:2014-05-18 浏览次数:20867 次
Regex reg = new Regex(@"(?<=<(\w+)>).*(?=<\/\1>)"); string str = @"<ab>11</ab><cd>aa</cd><ef>33</ef>"; foreach (Match m in reg.Matches(str)) Console.WriteLine(m.Value); Console.Read();