I am trying to validate the password using regular expression. The password is getting updated if we have all the characters as alphabets. Where am i going wrong ? is the re
I use the following script for min 8 letter password, with at least a symbol, upper and lower case letters and a number
function checkPassword(str) { var re = /^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/; return re.test(str); }