How to validate passowrd like it must have to be one alphabet and one number in jquery -


i need jquery validation password
need jquery regular expression have @ least 1 alphabet , 1 number.
tried /^(?=.*[a-za-z])(?=.*\d)[a-za-z\d]{8,}$/; regular expression doens't work when add special characters in it, have idea type of regular expression, appreciated.

something should validate.js. simple jquery library validating strings (min, max etc). , after quick google, found plenty of other people same question yours. here's one: jquery validate plugin - password check - minimum requirements - regex.

in question, @bergi gives answer following regex

/^(?=.*[a-z])[a-za-z0-9\d=!\-@._*]+$/ 

the min , max attributes being handled via validate.js. hope helps!


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -