zjfz-2019-s439462/regexp/Task301.py

9 lines
142 B
Python
Raw Normal View History

2020-01-23 12:38:31 +01:00
import re
def letter_and_two_digits(text) -> bool:
if re.search("[A-Z]\d{2}", text):
return True
else:
return False