Regex rx = new Regex(@"(\d+).\x20target...blank.\x20{1,5}style=.LINE-HEIGHT:150%.>",
            RegexOptions.Compiled | RegexOptions.IgnoreCase);
            MatchCollection _oMatchColl = rx.Matches(weatherhtml);

            string str = string.Empty;
            foreach (Match match in _oMatchColl)
            {
                GroupCollection groups = match.Groups;

                 str = groups[1].ToString();

            }

 

 

推荐一款写正则的软件:RegexTester

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2021-10-05
  • 2022-12-23
  • 2021-12-18
  • 2021-04-17
  • 2021-08-24
  • 2021-09-29
猜你喜欢
  • 2021-06-05
  • 2021-07-07
  • 2021-09-07
  • 2022-02-01
相关资源
相似解决方案