Split String with Delimiter
Example
>>> import re
>>> text = "These are collections of words seperated by a space."
>>> print(re.split(" ", text))
['These', 'are', 'collections', 'of', 'words', 'seperated', 'by', 'a', 'space.']re.split(" |\n")Last updated