how can i remove %0A from this string :- this is enter key code, which i need to remove from entire string. so how can i do this?
input:-
“NA%0A%0AJKhell this is test %0A”
Output:-
NAJKhell this is test
i have tried
String input = "NA%0A%0AJKhell this is test %0A";
String output = input.replaceAll("%0A","");
but still not get the output.
replaceAll method takes a regex as parameter. Try to escape percent sign
\\%I think it will work