Perl lets you make part of your regular expression case-insensitive by using the (? i:) pattern modifier . Modern regex flavors allow you to apply modifiers to only part of the regular expression.
Read moreHow do you make a pattern case-insensitive?
To enable the regex case insensitive matching, add (?) prefix or enable the case insensitive flag directly in the Pattern .7 Eyl 2013
Read more