- stringregStr ="<A>([\\w\\W]+?)</A>";//匹配A标签正则表达式Regex tmpReg =new Regex(regStr, RegexOptions.Compiled);
- MatchCollection matcheList = tmpReg.Matches(xml);
- if(matcheList.Count !=0)
- {
- for(inti =0; i < matcheList.Count; i++)
- {
- list.Add(matcheList[i].Groups[0].Value);
- }
- }
来源: http://www.bubuko.com/infodetail-2003188.html