DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
find and replace subword in word python regex
result = re.sub(r"Pulp Fiction", "Forrest Gump", text)
Source by stackabuse.com #
PREVIOUS
NEXT
Tagged:
#find
#replace
#subword
#word
#python
#regex
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit