Answers for "numpy reg ex delete words before a specific character"

0

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
Posted by: Guest on June-13-2020
0

numpy reg ex delete words before a specific character

sep = '...'
rest = text.split(sep, 1)[0]
Posted by: Guest on June-13-2020

Code answers related to "numpy reg ex delete words before a specific character"

Python Answers by Framework

Browse Popular Code Answers by Language