import re tmplist = re.split(r'\s(?=\d+(?!\S))', 'Dual 425mm AutoCannon 25') print(tmplist)
Standard input is empty
['Dual 425mm AutoCannon', '25']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!