//提取字符串中至少連續7位的數字 string txt = "www17736123780eeeee 7377091 ddddsssss7777777"; //找到的成功匹配的集合 MatchCollection mc = Regex.Matches(txt, @"\d{7,}"); foreach (Match m in mc) { Console.WriteLine(m.Value); }
//提取字符串中至少連續7位的數字 string txt = "www17736123780eeeee 7377091 ddddsssss7777777"; //找到的成功匹配的集合 MatchCollection mc = Regex.Matches(txt, @"\d{7,}"); foreach (Match m in mc) { Console.WriteLine(m.Value); }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。