It would be more readable to use raw strings, so you don't need so much escaping.