Questions tagged [case-insensitive]

An operation is case insensitive when uppercase and lowercase characters are equally treated.

1146 questions
-3
votes
4 answers

Not case sensitive comparison of strings

I have this currently (and much more) and want to make it so that if someone types something in from the array that isn't uppercase(it is currently all uppercase), then they can still order it. if(food.equals(array[0])) { …
Durnehviir
  • 56
  • 1
  • 8
-3
votes
2 answers

How do I make this code case-insensitive?

How do I make this code case.insensitive? Suggestions? def not3(string2, string1): if len(string2) < 3: return True if string2[:3] in string1: return False return not3(string2[1:], string1)
Vigorou
  • 25
  • 5
-4
votes
1 answer

how to find string in text file by compare it with user input using python?

I have Code that read files and compare it with user input (case-insensitive). I used the list-comprehension in order to loop through the content and compare with user-input. The problem is that the list comprehension return an empty list, although…
Propy Propy
  • 57
  • 10
-4
votes
2 answers

How to make case insensitive?

int_string = input("What is the initial string? ") int_string = int_string.lower() How do I make the input case insensitive
user2044600
  • 15
  • 2
  • 7
-5
votes
5 answers

How to make a string array

When I make an array of strings the equalsIgnorecase doesn't recognize it, in eclipse it's suggesting me to change the array to something else, vice verca. public void onChat(PlayerChatEvent event) { Player player = event.getPlayer(); …
Hayden Taylor
  • 329
  • 1
  • 4
  • 9
1 2 3
76
77