I use this to validate a password that has to have 8 characters, one capital letter and numeric but when I add an asterisk to it it throws an error saying passwords do not match, this only happens using the asterisk.
Any help will be appreciate it
ng-pattern="/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/"