fork download
  1. import re
  2. print(re.split(r'[\s\,]+','a,b, c d'))
  3. print(re.split(r'[\s\,\;]+','a;b;c d'))
  4. # your code goes here
  5. # your code goes here
  6. # your code goes here
Success #stdin #stdout 0.16s 15528KB
stdin
Standard input is empty
stdout
['a', 'b', 'c', 'd']
['a', 'b', 'c', 'd']