zjfz-2019-s439462/regexp/Task329.py

6 lines
97 B
Python
Raw Permalink Normal View History

2020-01-24 16:18:52 +01:00
import re
def is_singing(string):
return bool(re.match("((li|la|lo){2,})([!]*)?", string))