0

I am really new to programming and currently working on a project in Angular.

The requirements for password validations are :

  1. 8 or more characters
  2. At least 1 letter
  3. At least 1 number
  4. At least 1 special character
  5. 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?

madmax
  • 1
  • 2

0 Answers0