I'm having trouble finding the language represented by the following:
(AA|BB)*
Should the expression be read as... ( A (A|B) B ) * or... ( (AA) | (BB) )*
If that isn't clear, should this produce something like... ABABAB or should it produce AABBAABBBBAA
My guess is that AABBAA is part of the represented language, while AB is not.