Hi all- I'm working on identifying financial accounts that might be 'Sample' accounts. I've been finding account numbers in my data like '123456' or '5678901' that I've confirmed with business users are indeed fictitious accounts used for testing purposes. What I would like to do is find a way to isolate the digits in these account numbers to test if they are sequential so I can review to see if they are testing/sample accounts.
I'm thinking there's probably something I can do in RegEx to help me but I'm not very experienced with RegEx and am unsure where to start. I'm sure there's also a macro solution, but am feeling a little stuck overall. I would love guidance/opinions on the best approach and how to get started. Thank you in advance!
| Account Number (Input) | Is Sequential? (Desired Output) |
| Z5160 | FALSE |
| 2345 | TRUE |
| 7890123 | TRUE |
| 012345 | TRUE |
| 12345678 | TRUE |
| 1589673 | FALSE |
| 987654 | TRUE |