Python 3.5.2
s = r'\'
print(s)
File "/home/michael/workspace/regexp/regexp.py", line 1
s = r'\'
^
SyntaxError: EOL while scanning string literal
Could you help me understand why this expression leads to an error. If I add another symbol, say, s = r'\\'
, no syntax error.
But I want just one slash.