zjfz-2019-s439462/regexp/Task328.py

7 lines
104 B
Python
Raw Normal View History

2020-01-23 12:38:31 +01:00
import re
def is_hmmmm(string):
search = re.search("^hm{2,}(\.{3,}|)$", string)
return search