• 正则匹配代码


                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

  • 相关阅读:
    MySQL优化
    Java GC
    Java GC
    一致性哈希算法在分布缓存中的应用
    Hadoop
    Hbase 基础
    ORACLE
    ORACLE
    ORACLE
    ORACLE
  • 原文地址:https://www.cnblogs.com/zgaspnet/p/2270050.html
Copyright © 2020-2023  润新知