Python re.sub: ignore backreferences in the replacement string
Asked 2011-12-09T06:43:07.553
9
I want to replace a pattern with a string. The string is given in a variable. It might, of course, contains '\1', and it should not be interpreted as a backreference - but simply as \1.