numpy reg ex delete words before a specific character code example
Example 1: numpy reg ex delete words before a specific character
text = 'some string... this part will be removed.'
head, sep, tail = text.partition('...')
>>> print head
some string
Example 2: numpy reg ex delete words before a specific character
sep = '...'
rest = text.split(sep, 1)[0]