zjfz-2019-s439462/regexp/Task329.py
2020-01-24 16:18:52 +01:00

6 lines
97 B
Python

import re
def is_singing(string):
return bool(re.match("((li|la|lo){2,})([!]*)?", string))