function verifyPassword(pw) { var decimal= /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,15}$/; if(pw.match(decimal)) { return true; } else { return false; } }