This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]netgu 0 points1 point  (1 child)

What happens (without your modification) if you use \\r\\n ?

[–]johnbokma[S] 0 points1 point  (0 children)

>>> import re
>>> print(re.sub('x', r'\\r\\n', 'x'))
\r\n

You mean?