DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit