Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
find and replace subword in word python regex
Thunderweb
Programming language:
Python
2021-06-05 17:34:44
0
Q:
find and replace subword in word python regex
bumbumpaw
Code:
Python
2021-05-28 03:08:06
result = re.sub(r"Pulp Fiction", "Forrest Gump", text)
0
Tags
python
replace
find
sub
word
Related
count substring in string python
how to replace first line of a textfile python
python replace all occurrences in string
python regex substitute
searching for a pattern in text with re python
python replace regex
python regex inside quotes
python replace first occurrence in string
how to count the occurrence of a word in string python
how to replace a certain substring in python
pyton count number of character in a word
New to Communities?
Join the community