How do you make indexOf case insensitive?

Yes, it is case-sensitive. You can do a case-insensitive indexOf by converting your String and the String parameter both to upper-case before searching . Note that toUpperCase may not work in some circumstances.

Sizin İçin Seçtik  How do you check if two strings are the same ignoring their cases?

Leave a Reply

Your email address will not be published. Required fields are marked *