Regex regex2 = new Regex(@"<a[^>]+href=\s*(?:'(?<href>[^']+)'|""(?<href>[^""]+)""|(?<href>[^>\s]+))\s*[^>]*>(?<text>.*?)</a>", RegexOptions.IgnoreCase);
for (Match match2 = regex2.Match(html); match2.Success; match2 = match2.NextMatch())
{
string aname = match2.Groups["text"].Value;
string url = match2.Groups["href"].Value;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-07-13
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案