Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
once again re solution in Creative category for Acceptable Password VI by tom-tom
import re
def is_acceptable_password(password: str) -> bool:
return bool(re.match(r"""
# contains at least one digit and not digit and bigger than 6 or not less than 10
((?=.*\d)(?=.*\D)(?=.{7,})|(?=.{10,}))
# not contain the word "password" in any case
(?!(?i:.*password))
# contains 3 different letters (or digits)
(?P.).*?(?!(?P=x))(?P.).*?(?!(?P=x))(?!(?P=y))(.)""",
password, re.VERBOSE))
July 13, 2020
Comments: