Answers for "react js require pasword to have special charaacter"

0

react js require pasword to have special charaacter

analyze(event) {
    if(strongRegex.test(event.target.value)) {
        this.setState({ backgroundColor: "#0F9D58" });
    } else if(mediumRegex.test(event.target.value)) {
        this.setState({ backgroundColor: "#F4B400" });
    } else {
        this.setState({ backgroundColor: "#DB4437" });
    }
}
Posted by: Guest on June-07-2021
0

react js require pasword to have special charaacter

var regularExpression = /^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{6,16}$/;
Posted by: Guest on June-07-2021
0

react js require pasword to have special charaacter

function checkPassword(str)
{
    var re = /^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
    return re.test(str);
}
Posted by: Guest on June-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language