I'm trying to insert a backslash in a string but when I do this:
s1='cn=Name Surname (123)'
s1[:17] + '\' + s1[17:]
I get
SyntaxError: EOL while scanning string literal
Also, tried this but it inserts 2 backslashes
s1[:17] + '\\' + s1[17:]
The final string should look like this
s1='cn=Name Surname \(123\)'