If you want to know, the replace method is case sensitive , and so, if you eval “delete” against “DELETE” the answer will be false, because they aren’t equals. You can use Regular Expressions as the others pals said.7 Eki 2021
Read moreIs string replace case-sensitive JavaScript?
JavaScript String Replace | Case Insensitive . The . replace function in JavaScript helps developers replace all the occurrences of a string in a text. However, many of us developers use this method in the wrong way while writing the code.18 Şub 2019
Read moreIs string replace case-sensitive Python?
Is the String replace function case sensitive? Yes, the replace function is case sensitive . That means, the word “this” has a different meaning to “This” or “THIS”. In the following example, a string is created with the different case letters, that is followed by using the Python replace string method.
Read moreHow do you compare two strings with case-sensitive in Python?
Compare strings by ignoring case using Python As both the strings has similar characters but in different case. So to match these strings by ignoring case we need to convert both strings to lower case and then match using operator == i.e. It matched the strings in case in sensitive manner.
Read more