fork download
  1. import re
  2. text = "2000H2HfH"
  3. print( re.findall(r'\d+|[A-Z][a-z]*', text) )
  4.  
Success #stdin #stdout 0.02s 9444KB
stdin
Standard input is empty
stdout
['2000', 'H', '2', 'Hf', 'H']