How can I split by 1 or more occurrences of a delimiter in Python?
Just do not give any delimeter?
>>> a="test result"
>>> a.split()
['test', 'result']
>>> import re
>>> a="test result"
>>> re.split(" +",a)
['test', 'result']
>>> a.split()
['test', 'result']