I am looking for assistance with finding a RegEx to require exactly 9 numbers but block any more than 4 duplicate numbers in a row. If more or less than 9 characters are entered it should fail.
Examples would be:
- 123456789 - allowed
- 111156789 - allowed
- 121314151 - allowed
- 111116789 - not allowed
- 123499999 - not allowed
I've tried the following with no luck:
/^(?!.*(\d)\1{5})(\d{9})*$/