What is a regular expression to replace doublequotes (\") in a string with escape backslash followed by doublequotes (\\\") except at the first and last characters of the s
As pointed out by @mgilson, you can just slice the first and last characters off so this regex is basically pointless
>>> print re.sub(r'(?>> print re.sub(r'(?