You are viewing a single comment's thread. Return to all comments →
import re
pattern = r'^(?!.(.).\1)(?=(?:.[A-Z]){2,})(?=(?:.[0-9]){3,})[a-zA-Z0-9]{10}$'
print(*["Valid" if bool(re.match(pattern, input())) else 'Invalid' for _ in range(int(input()))], sep = '\n')
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 →
import re
pattern = r'^(?!.(.).\1)(?=(?:.[A-Z]){2,})(?=(?:.[0-9]){3,})[a-zA-Z0-9]{10}$'
print(*["Valid" if bool(re.match(pattern, input())) else 'Invalid' for _ in range(int(input()))], sep = '\n')