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 should match (xxx123xxx, 789xxxxxx, xxxxxx987, xxxxxx432)
These strings should not match (xxxxxx454, 333xxxxxx, xxx429xxx)