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 .

Sizin İçin Seçtik  Is there contains ignore case in Java?

Leave a Reply

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

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

Sizin İçin Seçtik  EOS yüksekliği ne anlama gelir?

Leave a Reply

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

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

Sizin İçin Seçtik  Mana arzı ne kadar?

Leave a Reply

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