Reputation: 23
String test = "Vol. 5 −";
test = test.replaceAll("\u2014", "");
test = test.replaceAll("//-", "");
test = test.replaceAll("-","");
System.out.println(test);
Still got "Vol. 5 -" in output tried in all possibilities
Upvotes: 1
Views: 1885
Reputation: 1739
String test = "Vol. 5 −";
test = test.replaceAll("\u2212", "");
System.out.println(test);
Works fine
Upvotes: 2