You are viewing a single comment's thread. Return to all comments →
My python regex solution:
def minimumNumber(n, password): counter = 0 if not re.search(r"\d", password): counter += 1 if not re.search(r"[a-z]", password): counter += 1 if not re.search(r"[A-Z]", password): counter += 1 if not re.search(r"[!@#$%^&*()\-+]", password): counter += 1 return max(counter, 6 - n)
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
My python regex solution: