You are viewing a single comment's thread. Return to all comments →
import re regex = re.compile(r'^[a-z]{0,3}[0-9]{2,8}[A-Z]{3,}$') for i in range(int(input())): if regex.match(input()): print('VALID') else: print('INVALID')
Seems like cookies are disabled on this browser, please enable them to open this website
Utopian Identification Number
You are viewing a single comment's thread. Return to all comments →