B
Blair Fraser
This seems incredibly bizzare. I'm trying to sub in a string with a
backslash using re.sub. If that string has a \b in it I can't stop it
from being interpreted as a backspace, even though the string is a raw
string and prints correctly.
In the first case the \b is being re-interpreted as a backspace and
deleting the opening curly bracket. However it initially prints as
the string I want as a substitution.
backslash using re.sub. If that string has a \b in it I can't stop it
from being interpreted as a backspace, even though the string is a raw
string and prints correctly.
In the first case the \b is being re-interpreted as a backspace and
deleting the opening curly bracket. However it initially prints as
the string I want as a substitution.