Java reemplazar la caja de cadena insensible
String target = "FOOBar";
target = target.replaceAll("(?i)foo", "");
System.out.println(target);
serhii.nahornyi
String target = "FOOBar";
target = target.replaceAll("(?i)foo", "");
System.out.println(target);
String phrase = "StEVen";
String result = phrase.replaceAll("(?i)e", "f");
System.out.println(result);