import retext = "2aab13c"print(re.findall(r'\d+\D*', text))print(re.split(r'(?<=\D)(?=\d)', text))
Standard input is empty
['2aab', '13c'] ['2aab', '13c']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!