I am referring as a follow up on this question here: Regular expression to match two numbers that are not equal
Now my other question scenario is this:
P121324 - T
P1212 - F - we got this covered in the message on link above (no same "sets")
P1221 - F - now new restriction - not even the reversed digits 12 - 21
But, the problem now is that the P string can be very long! - like this:
P121315162324
please notice this is ok since the "sets" are:
12 13 14 15 16 23 24
Now, I could make this in the code (PHP) by checking if there are repetitions, but I was wondering if this can be done with single regex command?