I have quite large amount of text which include control charachters like \\n \\t and \\r.
I need to replace them with a simple space--> \" \". What is the fastest way to do this
my_string is the string where you want to delete specific control characters.
As strings are immutable in python, after substitute operation you need to assign it to another string or reassign it: