Tested at http://regexr.com/ and https://regexper.com
^([0-9])\1{4,}\-?\1{3}$
- 00000-000 // true
- 12345-678 // false
- 33333-333 // true
- 00000-001 // false
- 0000000 // true
- 1000000 // false
Tested at http://regexr.com/ and https://regexper.com
^([0-9])\1{4,}\-?\1{3}$