find and replace subword in word python regex

26

result = re.sub(r"Pulp Fiction", "Forrest Gump", text)

Comments

Submit
0 Comments