标签:匹配 lis ons ++ str 标签 mat 内容 count
string regStr = "<A>([\\w\\W]+?)</A>";//匹配A标签正则表达式 Regex tmpReg = new Regex(regStr, RegexOptions.Compiled); MatchCollection matcheList = tmpReg.Matches(xml); if (matcheList.Count != 0) { for (int i = 0; i < matcheList.Count; i++) { list.Add(matcheList[i].Groups[0].Value); } }
标签:匹配 lis ons ++ str 标签 mat 内容 count
原文地址:http://www.cnblogs.com/xiaoheihei/p/6651411.html