zjfz-2019-s402281/regexp/Task328.py

7 lines
107 B
Python
Raw Normal View History

2020-01-12 13:28:13 +01:00
import re
def is_hmmmm(string):
pattern = r'^hm{2,}(\.{3,}|)$'
return re.search(pattern, string)