Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js require pasword to have special charaacter

function checkPassword(str)
{
    var re = /^(?=.*d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
    return re.test(str);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #js #require #pasword #special #charaacter
ADD COMMENT
Topic
Name
9+8 =