Sometimes you just need a quick and dirty python command to do something accurately to assist in the creation / population of templates which saves manual effort and checking. Now I do use python extensively and often write fairly complex
Find & Replace Multiple Files
I’m sure there are many different ways to do this however this way worked well. I’ve included an example where escaping specific characters is required which adds a little more complexity as they must be escaped using the ‘\’ character.