java menggantikan case string tidak sensitif

String target = "FOOBar";
target = target.replaceAll("(?i)foo", "");
System.out.println(target);
serhii.nahornyi