Advertisement
mengyuxin

meng.strongPasswordCheck.py

Jan 2nd, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # python3
  2. # strongPasswordCheck.py
  3.  
  4. import re
  5.  
  6. print('Enter a password:')
  7. password = input()
  8.  
  9. regex = re.match(r'^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,}$', password)
  10.  
  11. print(regex)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement