flyingssky 2012-07-06
一,密码最少长度为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,}