fork download
  1. import re
  2. s = ' 5, 3, , hello'
  3. print(re.split('[\s,]+', s.strip()))
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
['5', '3', 'hello']