If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read moreWhat is case insensitive search?
A case-insensitive search is more comprehensive, finding “Language” (at the beginning of a sentence), “language”, and “LANGUAGE” (in a title in capitals ); a case-sensitive search will find the computer language “BASIC” but exclude most of the many unwanted instances of the word.
Read moreIs indexOf case-sensitive C#?
IndexOf Method is by default case sensitive . But we can make it case insensitive if we use one of the overloads: IndexOf(String, StringComparison).
Read moreHow do you make an array case insensitive?
To do a case insensitive check if an array contains a string in JavaScript:
Read moreHow do you check if a string contains a substring case insensitive JavaScript?
The simplest way is to convert the entire string to either to lowercase or uppercase and use the javascript indexOf, includes methods as shown below. To check for case insensitive string contains, use the regular expressions. Add suffix “i” after the string regular expression as shown.
Read moreHow do you check if a string contains a substring case insensitive JavaScript?
The simplest way is to convert the entire string to either to lowercase or uppercase and use the javascript indexOf, includes methods as shown below. To check for case insensitive string contains, use the regular expressions. Add suffix “i” after the string regular expression as shown.
Read moreHow do I make indexOf not case sensitive?
Both String#includes() and String#indexOf() are case sensitive. Neither function supports regular expressions. To do case insensitive search, you can use regular expressions and the String#match() function, or you can convert both the string and substring to lower case using the String#toLowerCase() function .16 May 2019
Read more