我想知道正则表达式中的任何字符是否大于3。这可能吗? (我不想使用for循环。导致速度变慢!)
string = "abcdeffffffffghijklmno1234567890"
您需要这个:
re.findall('[4-9]', string)