If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read moreIs JavaScript match case-insensitive?
A general requirement while working in javascript is case-insensitive string comparisons . Case-insensitive comparison means equating strings irrespective of their case.
Read moreIs JavaScript match case-insensitive?
A general requirement while working in javascript is case-insensitive string comparisons . Case-insensitive comparison means equating strings irrespective of their case.
Read moreIs JavaScript search case-sensitive?
Case Insensitive Search Both String#includes() and String#indexOf() are case sensitive . … 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 moreIs JavaScript regex case sensitive?
Regular expression, or simply RegEx JavaScript allows you to write specific search patterns. You can also make the search case-sensitive or insensitive , search for a single JavaScript RegEx match or multiple, look for characters at the beginning or the end of a word.8 Ağu 2017
Read moreIs JavaScript regex case sensitive?
Regular expression, or simply RegEx JavaScript allows you to write specific search patterns. You can also make the search case-sensitive or insensitive , search for a single JavaScript RegEx match or multiple, look for characters at the beginning or the end of a word.8 Ağu 2017
Read moreHow do you make a case-insensitive in JavaScript?
The most basic way to do case insensitive string comparison in JavaScript is using either the toLowerCase() or toUpperCase() method to make sure both strings are either all lowercase or all uppercase .
Read more