fork download
  1. import re
  2.  
  3. test = "A123A456A"
  4.  
  5. law_list = re.findall('(?=A(.*?)A)', test, re.DOTALL)
  6.  
  7. print(law_list)
Success #stdin #stdout 0.04s 9608KB
stdin
Standard input is empty
stdout
['123', '456']