You are viewing a single comment's thread. Return to all comments →
import sys, re T = sys.stdin.read().splitlines() T = [T[1:] if len(T)<90 else T[1:91]][0] UID = re.compile( r"(?!.*(.).*\1)" r"(?=^[a-zA-Z0-9]{10}$)" r"(?=(.*[A-Z].*){2,})" r"(?=(.*\d.*){3,})" ) for line in T: if UID.search(line): print('Valid') 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 →