I would like to match string of two consecutive alphabets like AA, BB not AB, BD. Python 3.x is my language. Please consider valid alphabets would be capitalized. The followings are examples for valid and not valid strings: To be honest, ^[A-Z]{2} would not work.
- Valid: AA, ZZ, DD, EE,
- Not valid: AB, DDD, aA, Aa, Cd, DE