Created
June 15, 2011 17:31
-
-
Save marcinkuzminski/1027612 to your computer and use it in GitHub Desktop.
Python password pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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