import re

test = "A123A456A" 

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

print(law_list)