import retext = "2000H2HfH"print( re.findall(r'\d+|[A-Z][a-z]*', text) )
Standard input is empty
['2000', 'H', '2', 'Hf', 'H']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!