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
There is no other way than listing them:
(012|123|234|345|456|567|678|789|987|876|765|654|543|432|321|210)