import re test = "A123A456A" 

law_list = re.findall('A(.*?)A', test, re.DOTALL) 

print(law_list)

이결과가 왜 ['123', '456'] 이 아닌 ['123']일까요?