I need to match an expression in Python with regular expressions that only matches even number of letter occurrences. For example:
AAA # no match AA
This searches for a block with an odd number of A's. If you found one, the string is bad for you:
(?
If I understand correctly, the Python code should look like:
if re.search("(?