I am really new to programming and currently working on a project in Angular.
The requirements for password validations are :
- 8 or more characters
- At least 1 letter
- At least 1 number
- At least 1 special character
- A maximum of 2 consecutive identical characters are allowed allowed (aa is ok/ aaa is not ok)
So far I have this:
^(.{0,7}|[^0-9]*|[^A-Z]*|[^a-z]*|[a-zA-Z0-9]*)$
What is the correct RegEx in this case?