Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react hook form password validation uppercase

function checkPassword(str)
{
    var re = /^(?=.*d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
    return re.test(str);
}
 
PREVIOUS NEXT
Tagged: #react #hook #form #password #validation #uppercase
ADD COMMENT
Topic
Name
2+9 =