1

就是下面这个啦:

const regex = /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[\W])(?=.*[\S])^[0-9A-Za-z\S]{6,12}$/g;
const str = `22SS@@ss`;
console.log(regex.test(str))

fsme
781 声望3 粉丝