Java Substitua a caixa de string insensível
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);