I would like to disallow if the string contains consecutive five digits and more like: 12345, 11111, 123456.
I have got success in disallowing any number in string using
This is a good website for testing your regex:
https://regex101.com/
You could try this:
/^[0-9]{5,}$/
5 numbers or more will pass the regex.