let reg = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/ let str = 'jiji12313' console.log(reg.test(str))