You are viewing a single comment's thread. Return to all comments →
import re pattern = r"^(?=.*[A-Z].*[A-Z])(?=.*\d.*\d.*\d)(?!.*(.).*\1)[A-Za-z0-9]{10}$" for i in range(int(input())): print('Valid') if re.match(pattern, input()) else print('Invalid')
Seems like cookies are disabled on this browser, please enable them to open this website
Validating UID
You are viewing a single comment's thread. Return to all comments →