If you want to verify "AB.12" but "ABx12" is also passing, check if the dot is being specified as a literal character. In Python's regular expressions, . usually matches any character except a newline ...
The editors of The New York Times Book Review bring you our latest fiction reviews, our latest nonfiction reviews, recommendation lists from authors we love, the 50 best thrillers of the century, ...