• + 1 comment
    def uid_validator(uid):
    	uid = uid.strip()
    	return (
    		'Valid' if (
    			re.fullmatch(r'^[0-9a-zA-Z]¨{10}', uid)
    			and len(re.findall(r'[A-Z], uid) >=2)
    			and len(re.findall(r'[0-9], uid) >= 3)
    			and len(set(uid) == 10
    		) else 'Invalid
    	)