zjfz-2019-s439462/regexp/Task312.py

6 lines
93 B
Python

import re
def is_pin_code(string):
return bool(re.fullmatch("\d{4}(?<!0000)", string))