📌  相关文章
📜  正则表达式匹配重复字符 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.709000             🧑  作者: Mango

代码示例1
#!perl
use warnings;
use strict;
my $regex = qr/(.)\1{9,}/;
print "NO" if "abcdefghijklmno" =~ $regex;
print "YES" if "------------------------" =~ $regex;
print "YES" if "========================" =~ $regex;