All I want to do is search for "\\n" and replace it with "\n". However there appears to be no simple way to do this - am I missing something or am I going to have to write some kind of complex if then statement etc. to do this.
Currently I was trying to use the java.lang.replace method, but it appears you can only search/change one character at a time w/ this, as I'm getting an error when I run:
String Ntext = "Here is a newline \\n newline";
String Rtext = Ntext.replace('\\n','\n');


Reply With Quote


Bookmarks