Answers for "regular expression password validation javascript"

8

password regex

^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$
Posted by: Guest on November-28-2019
0

javascript password validation regex test

const isPasswordSecure = (password) => {
    const re = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})");
    return re.test(password);
};
Posted by: Guest on September-25-2021

Code answers related to "regular expression password validation javascript"

Browse Popular Code Answers by Language