If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read moreHow do you make a character case insensitive in java?
Java String: equalsIgnoreCase() Method The equalsIgnoreCase() Method is used to compare a specified String to another String, ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length and corresponding characters in the two strings are equal ignoring case.26 Şub 2020
Read moreHow do you make a string ignore case?
Java String equalsIgnoreCase() Method with Examples. The equalsIgnoreCase() method of the String class compares two strings irrespective of the case (lower or upper) of the string . This method returns a boolean value, true if the argument is not null and represents an equivalent String ignoring case, else false.
Read more