I have a string "|" and would like to replace with a simple "", my java code in a simplified way looks like this:
String teste = "|A|B|C";
teste.replaceAll("|","");
Output:
"|A|B|C"
I would like the output to be without the "|", I already tested with other normal worked characters, however with that I can not do the replaceAll. Could someone show me another way to remove or the explanation of why this happens?