Use replaceAll() to ignore case when replacing one substring with another : String Operation « Regular Expressions « Java.
Is replaceAll case-insensitive in Java?
Use replaceAll() to ignore case when replacing one substring with another : String Operation « Regular Expressions « Java.