密码复杂度检查的正则表达式
一,密码最少长度为6位,并至少包含3种复杂类别的字符(如Abc134或者abc12#符合如abc123123(就不符合)
二密码最少长度为8位,并至少包含2种复杂类别的字符(如Abc21334或者abcd1234符合如12345678abcdefg就不符合)
三,密码的复杂类别由拉丁、西里尔或希腊字母组成
复杂类别说明
1大写字母如:ABC....Z
2小写字母如:abc....z
3西文阿拉伯数据如:012...9
4其他字符("特殊字符"、标点、符号如:{}[],@$%&^()_+=
^(?:(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).{6,}|(?:(?=.*[A-Z])(?=.*[a-z])|(?=.*[A-Z])(?=.*[0-9])|(?=.*[A-Z])(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*[0-9])|(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[0-9])(?=.*[^A-Za-z0-9])|).{8,}
相关推荐
wangzhaotongalex 2020-10-20
wyq 2020-11-11
TLROJE 2020-10-26
风雨断肠人 2020-10-13
duanqingfeng 2020-09-29
rechanel 2020-11-16
cshanzhizi 2020-10-16
luofuIT成长记录 2020-09-22
phphub 2020-09-10
taomengxing 2020-09-07
MaggieRose 2020-08-19
flyingssky 2020-08-18
山水沐光 2020-08-18
jyj00 2020-08-15
AHuqihua 2020-08-09
山水沐光 2020-08-03