我正在处理这段代码,并使用“match”函数来检测密码的强度。如何检测字符串中是否有特殊字符?
if(password.match(/[a-z]+/)) score++;
if(password.match(/[A-Z]+/)) score++;
if(password.match(/[0-9]+/)) score++;