I have str1: "I can\'t do that." How can I get from str1 to str2: "I can't do that."?
"I can\'t do that."
"I can't do that."
I have tried str2 = str1.replace("\", "") but it doesn't work.
str2 = str1.replace("\", "")
Thank you!
Try this:
str1.replace("\\", "")