密码强度
1 强:字母+数字+特殊字符 2 ^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&*]+$)(?![\d!@#$%^&*]+$)[a-zA-Z\d!@#$%^&*]+$ 3 4 5 中:字母+数字,字母+特殊字符,数字+特殊字符 6 ^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&*]+$)[a-zA-Z\d!@#$%^&*]+$ 7 8 弱:纯数字,纯字母,纯特殊字符 9 ^(?:\d+|[a-zA-Z]+|[!@#$%^&*]+)$
如果觉得对你有所帮助就打点一下吧