You are viewing a single comment's thread. Return to all comments →
import re p = r'^(?=.*[A-Z].*[A-Z])(?=.*\d.*\d.*\d)[a-zA-Z0-9]{10}$' for _ in range(int(input())): s = input() print("Valid" if re.match(p, s) and len(s) == len(set(s)) else "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 →