About password regularity

password setting rules: length is at least 6 characters, can contain numbers / letters / symbols and other combinations; case-sensitive letters; can not use Chinese, spaces, illegal characters.
look forward to this js regular

Jan.08,2022

/^[0-9A-Z_!]{6,}$/gi.test('1aA123') // true
/^[0-9A-Z_!]{6,}$/gi.test('1aA123') //false

legal symbols can continue to be added

in [] .

if there is a maximum number of digits, such as 15 digits, {6pm 15}

Menu