xxxxxxxxxx
new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9_])")
xxxxxxxxxx
^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{8,20}$
Must have at least one numeric character
Must have at least one lowercase character
Must have at least one uppercase character
Must have at least one special symbol among @#$%
Password length should be between 8 and 20
xxxxxxxxxx
validatePassword(input: string): void {
if (this.password === input) {
this.router.navigate(['/invitation']);
}
}