zjfz-2019-s402281/regexp/Task328.py
2020-01-12 13:28:13 +01:00

7 lines
107 B
Python

import re
def is_hmmmm(string):
pattern = r'^hm{2,}(\.{3,}|)$'
return re.search(pattern, string)