Numpy reg ex menghapus kata -kata sebelum karakter tertentu
sep = '...'
rest = text.split(sep, 1)[0]
Difficult Donkey
sep = '...'
rest = text.split(sep, 1)[0]
text = 'some string... this part will be removed.'
head, sep, tail = text.partition('...')
>>> print head
some string