数字、字母、特殊字符,至少两种及以上6到18组合: reg: ((?=.*\d)(?=.*\D)|(?=.*[a-zA-Z])(?=.*[^a-zA-Z]))(?!^.*[\\\'\/\"].*$)^\S{6,20}$ 亲测有效