http://www.perlmonks.org?node_id=883761


in reply to Regex help pls

Depending on what exatly you want your regex to do, you could simply just cheat:
/01|12|23|34|45|56|67|78|89/

It's not elegant, but it's the simplest solution. Even if you need to match series of 3 or more digits, there is very little typing needed.

Obviously, it's pretty easy to expand this to only match strings that contain no other numbers, or strings that contain no letters etc. You gave no information as to what you actually want the regex to do, so no specific solution can be given.