Replace only some words using a regular expression [closed]
Closed yesterday.
regex replace string with variable value in a file using python
i also have a question to python.
I want to replace a number after the string “world:” in a file by a value calculated and stored inside a python variable.