As input, I get the line "some text\\nsome text"â, which is displayed as "some text\nsome text". How can I remove one backslash and get
"some text\nsome text"â shown as
"some text
some text"
This will work for other special characters such as "\t"? With regex can only be done as textLine.replace("\\n", "\n") and so on.
Is there another way?
source
share