pwRegex = /^\D(?=.{5})(?=\w*\d{2})/;
pwRegex = /^\D(?=.{5})(?=\d{2})/;
为什么第二行不返回true
console.log(pwRegex.test('astro22'));
pwRegex = /^\D(?=.{5})(?=\w*\d{2})/;
pwRegex = /^\D(?=.{5})(?=\d{2})/;
为什么第二行不返回true
console.log(pwRegex.test('astro22'));