Python 正则表达式验证密码完整性

来源:互联网 发布:什么软件可以录播 编辑:程序博客网 时间:2024/06/07 00:00

Regular Expression

1. Length between 8 and 32 characters^[\s\S]{8,32}$2. ASCII visible and space characters onlyRule: match A-Z,0-9,a-z and ASCII punctualtion      no control characters, line breaks, characters out of the ASCII talbe are allowed^[\x20-\x7E]+$3. One or more uppercase letters[A-Z]+4. One or more lowercase letters[a-z]+5. One or more numbers[0-9]+6. One or more special characters[ !"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]7. Anything other than ASCII letters and numbers[^a-zA-Z0-9]8. Disallow three or more sequential identical characters([\s\S])\1\19. Mutil rules Length between 8 and 32 charactersOne or more upppercase lettersOne or more lowerercase lettersOne or more numbers^(?=[\s\S]{8,32}$)(?=[\s\S]*[A-Z])(?=[\s\S]*[a-z])(?=[\s\S]*[0-9]).*


0 0
原创粉丝点击