密码强度正则
6位+数字+字母+特殊字符 |6位+数字、字母、特殊字符两两组合 | 6位
var threeRegex = new RegExp("^(?=.{6,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*\\W).*$", "g"); var twoRegex = new RegExp("^(?=.{6,})(((?=.*[a-zA-Z])(?=.*\\W))|((?=.*[0-9])(?=.*\\W))|((?=.*[a-zA-Z])(?=.*[0-9]))).*$", "g"); var oneRegex = new RegExp("(?=.{6,}).*", "g");