fork download
  1. import re
  2. s = 'this1234is5678it'
  3. l = re.split('(\d+)',s)
  4. print (l)
Success #stdin #stdout 0.02s 8688KB
stdin
Standard input is empty
stdout
['this', '1234', 'is', '5678', 'it']