Java Replaceall Abaikan kasus

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