^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_]+$)(?![a-z0-9]+$)(?![a-z\\W_]+$)(?![0-9\\W_]+$)[a-zA-Z0-9\\W_][^\u4E00-\u9FFF\uFF00-\uFFEF\u3000-\u303F]{7,16}$ 表示校验密码必须有大小写字母、数字、特殊字符三种以上并且不能带有中文字符以及中文
var regexpEx = new RegExp('^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_]+$)(?![a-z0-9]+$)(?![a-z\\W_]+$)(?![0-9\\W_]+$)[a-zA-Z0-9\\W_][^\u4E00-\u9FFF\uFF00-\uFFEF\u3000-\u303F]{7,16}$') regexpEx .test('Asd111')
标签:u4E00,中文,字符,校验,zA,Z0 From: https://www.cnblogs.com/my1227/p/17700601.html