numpy reg ex delete words before a specific character

Solutions on MaxInterview for numpy reg ex delete words before a specific character by the best coders in the world

showing results for - "numpy reg ex delete words before a specific character"
Paola
20 Oct 2019
1sep = '...'
2rest = text.split(sep, 1)[0]
Mae
27 Jan 2019
1text = 'some string... this part will be removed.'
2head, sep, tail = text.partition('...')
3
4>>> print head
5some string