6 lines
93 B
Python
6 lines
93 B
Python
import re
|
|
|
|
|
|
def is_pin_code(string):
|
|
return bool(re.fullmatch("\d{4}(?<!0000)", string))
|