I need a regex pattern to match a sequence of 3 consecutive digits in a string that are consecutively increasing or decreasing.
For example:
These strings sh
This can be done simply, but only with defining the valid sets of consecutive digits
(?:012|210|123|321|234|432|345|543|456|654|567|765|678|876|789|987)