I want to remove ^ character from my string but it is not working. I have used the replaceAll method but it still not working.
String str = "^\"^s^h^u^b^h^a^m\"^:";
str=str.replaceAll("^", "");
System.out.println(str);
And I am getting this output.
^"^s^h^u^b^h^a^m"^: