Skip to content

Instantly share code, notes, and snippets.

@marcinkuzminski
Created June 15, 2011 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcinkuzminski/1027612 to your computer and use it in GitHub Desktop.
Save marcinkuzminski/1027612 to your computer and use it in GitHub Desktop.
Python password pattern
Password pattern
# min 6 + 1 (Digit or special sign) and small letters
PASSWD_PAT = re.compile('(?=^.{6,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[a-z]).*$')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment