📅  最后修改于: 2022-03-11 15:03:56.777000             🧑  作者: Mango
代码示例1
function checkPassword(str)
{
var re = /^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
return re.test(str);
}