you can use Character. toLowerCase or Character. toUpperCase to make all to lower case or upper case and compare it.
Read moreIs regex case sensitive?
By default, the comparison of an input string with any literal characters in a regular expression pattern is case sensitive , white space in a regular expression pattern is interpreted as literal white-space characters, and capturing groups in a regular expression are named implicitly as well as explicitly.
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 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 moreWhich modifiers are used for case insensitive search?
The RegExp i Modifier in JavaScript is used to perform case-insensitive matching in the string.
Read more