Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove a part of a string python

import re
url = 'abcdc.com'
url = re.sub('.com$', '', url)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #part #string #python
ADD COMMENT
Topic
Name
9+4 =