fork download
  1. import re
  2. s = "hello world123"
  3. print(re.findall(r'[^\W\d_]+|\d+', s))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['hello', 'world', '123']