Java заменить строковый корпус нечувствительный
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);