replaceAll regular expression
807601Apr 2 2008 — edited Apr 2 2008I have a problem with replaceAll, and I would like to know if it is eventually something wrong in java
I try to replace the String "\E" with "\\U" and out comes U with only one slash
if( ("a\\Ea".replaceAll("\\\\E", "\\"+"\\U")).equals("a\\Ua") == true){
System.out.print("error");
}
Thanks Thomas