static passwordFormatRegex(control) { //(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&].{6,13}
if (control.value != null) { //(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[a-zA-Z!#$%&? "])[a-zA-Z0-9!#$%&?]{6,13}
if (control.value.match(/^$((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,30})/)) {
return null;
} else {
return { 'password_exp_message': true };
}
} else {
return { 'password_exp_message': true };
}
}