Java

Case Insensitive replaceAll in Java

Apr 23rd, 2009 | By admin | Category: Java

java.lang.String.replaceAll(String regex, String replacement) method replaces each substring that matches the given regular expression with the given replacement. But Often we fall in trouble to do case sensitive replacement.
Say my code has a string "I am a tesTeR" and I want to replace the substring "tesTeR" with "Developer" . Now In my programming, the substring [...]