I found similar question Regular expression to match sets of numbers that are not equal nor reversed but I'm bad in regexp so need an advice. I have string, i.e: 3344654865 and I need to know that first characters are two not equal pairs. I tried this regexp
^(?:(\d)(?:\1)(\d)(?:\2))
but it captures only first digit in pair
1. [0-1] `3`
2. [2-3] `4`
In example 3344654865 it should capture two pairs of digit, where digits inside pair are equal 3=3, and 4=4. How to upgrade my regexp that it will return two not equal pairs from the begining of the string ?