Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkPassword() {
- var pass = $("#password").val();
- var confpass = $("#confirm_password").val();
- var regex = new RegExp(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/);
- if(regex.test(pass) && regex.test(confpass)){
- return true;
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement