public static String replaceNotEscaped(String s,String old,String replacement){
  s=s.replace(ESCAPE_CHARACTER + old,TEMP_REPLACEMENT);
  s=s.replace(old,replacement);
  s=s.replace(TEMP_REPLACEMENT,old);
  return s;
}

public static String replaceNotEscaped ( String s , String old , String replacement ) { s = s . replace ( ESCAPE_CHARACTER + old , TEMP_REPLACEMENT ) ; s = s . replace ( old , replacement ) ; s = s . replace ( TEMP_REPLACEMENT , old ) ; return s ; }
this method does not use " complex " regular expressions to avoid problems with compiling to gwt
