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);
  }
}

 

相关文章:

  • 2021-10-16
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-17
  • 2021-06-20
猜你喜欢
  • 2021-09-17
  • 2021-12-09
  • 2021-07-15
  • 2022-12-23
  • 2022-02-23
相关资源
相似解决方案