s = 'a,b,c d!e.f\ngood\tmorning&night'
delimiters = [',', '.', '!', '&', '', '\n', '\t']
s.split()
Can I split a string by all of ',', '.', '!', '&', ' ', '\n', '\t'
? Is it possible to specify multiple delimiters for string.split()
? For example, how can I split s
into
['a','b','c','d','e','f','good','morning','night']