I want to match sth like 12.12a or 13.12b but the below regex match with 'a' and i have no clue why is like that
import re
pattern = re.compile('\d\d?\.\d\d?(a|b)')
txt = "12.12a"
pattern_list = re.findall(pattern,txt)
for item in pattern_list:
print(item) # result a