function janrainPasswordValidation(name, value, validation) { validation.pending(); var regex = /^.*(?=.*\d)(?=.*[a-zA-Z]).*|.*(?=.*\d)(?=.*[`~!@#$%^&*]).*|.*(?=.*[`~!@#$%^&*])(?=.*[a-zA-Z]).*$/ if (regex.test(value)) { validation.valid(); return true; } else { validation.notValid(); return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)