Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #reg #delete #words #specific #character
ADD COMMENT
Topic
Name
2+6 =