Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Acceptable Password V by dx2-66
import re
def is_acceptable_password(passw):
match = re.search(r'\d+', passw)
match2 = re.search(r'password', passw, re.IGNORECASE)
n_digits = len(match[0]) if match else 0
return not match2 and (len(passw) > 9 or n_digits and n_digits < len(passw) > 6)
May 6, 2022
Comments: