I need to make a password pattern validator
the password should have:
- 1 uppercase letter
- 1 lowercase letter
- A number
- A minimum length of 8.
I found this regex pattern:
Validators.pattern('/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d!$%@#£€*?&]')
however, the validator always claims my input is invalid
errors:
pattern:
actualValue: "Test1234"
requiredPattern: "^/^(?=.*[A-Za-z])(?=.*d)[A-Za-zd!$%@#£€*?&]$"
according to https://regex101.com/r/AfAdKp/1 this value is supposed to be valid.
Edit: to clarify, Test1234 is supposed to work