//提取字符串中至少连续7位的数字
            string txt = "www17736123780eeeee 7377091 ddddsssss7777777";
            //找到的成功匹配的集合
            MatchCollection mc = Regex.Matches(txt, @"\d{7,}");
            foreach (Match m in mc)
            {
                Console.WriteLine(m.Value);                
            }

 

转载于:https://www.cnblogs.com/lb809663396/p/5343825.html

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐