0

I need password field validation that should block if more than 4 repeating characters.

Expected Result: Eg: abcde@123 - true aaaacad@123 - false (5 "a" present)

^(?=.*[A-Za-z])(?=.*\d.*\d)(?=.*[$@$!_%*#?&.])[A-Za-z\d$@$!%*#_?&.]{8,}$

I tried those solutions but its checking continuous repeating characters

Dale K
  • 25,246
  • 15
  • 42
  • 71
Ranjith Kumar
  • 258
  • 1
  • 4
  • 16
  • I tried those solutions but its checking continuous repeating characters. But i need to find contains more than 4 repeating characters. – Ranjith Kumar Jan 23 '19 at 01:10
  • You might find [Reference - Password Validation](https://stackoverflow.com/q/48345922/3600709) useful. – ctwheels Mar 27 '19 at 15:25

0 Answers0