Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.search IV solution in Clear category for Acceptable Password IV by Olpag
import re
pattern = re.compile('''
^ # beginning of string
(?=.*?\d) # at least one digit
(?=.*?\D) # at least one non-digit
[ \S] # space or any non-whitespace character
{7,} # length should be bigger than 6
| # or
[ \S] # space or any non-whitespace character
{10,} # length should be bigger than 9
$ # end of string
''', re.VERBOSE)
def is_acceptable_password(password):
return bool(pattern.search(password))
April 1, 2020
Comments: