Python uses a function on the str/unicode object instead of a standalone function
new_s = s.replace(match, replacement)
You can view more PHP-Python statements here.
Python uses a function on the str/unicode object instead of a standalone function
new_s = s.replace(match, replacement)
You can view more PHP-Python statements here.