Hi,
I'm frustrated with composing regular expressions for Matching "ABAB", "AABB", "ABB", "AAB", "ABAC" and "ABCB".
Let's take "ABAB" for example, all the following string will be matched:
abab
bcbc
1212
xyxy
9090
0909
Which means the RegEx should match a string whose 1st and 3rd characters are same, and 2nd and 4th are also same, but 1st and 2nd should NOT be the same (3rd and 4th should not be same, of course).
Do I make myself clear?
Thanks.
Peter