9 lines
142 B
Python
9 lines
142 B
Python
import re
|
|
|
|
|
|
def letter_and_two_digits(text) -> bool:
|
|
if re.search("[A-Z]\d{2}", text):
|
|
return True
|
|
else:
|
|
return False
|