What 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 more

How 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