I want to test for string corruption and it would be easiest to use a regex that finds violations of a repeated sequence of characters. Suppose the sequence used for validating integrity is 0 to 9.
For example, '0123456790123456789' would match '79' because '8' is missing.
'01234567555890123456789' would match '75558' because '555' doesn't belong. The specific string returned isn't important, just the flagging of at minimum the first location of corruption.
How can I achieve this with a regular expression, if this is even possible with a regex?