An operation is case insensitive when uppercase and lowercase characters are equally treated.
Questions tagged [case-insensitive]
1146 questions
-2
votes
2 answers
Why C keywords are case sensitive?
C keywords are predefined by the C compiler and they are lowercase in C89. Since there are only 32, why can't one define them as case-insensitive?

Kailash
- 21
- 1
- 4
-2
votes
2 answers
Lower casing C# string
Hi all i have a small function that is storing characters in a string into a dictionary. The string could contain lower case and upper case letters simultaneously and I wanted to store all the characters in either lower case or upper case. Basically…

Naphstor
- 2,356
- 7
- 35
- 53
-2
votes
3 answers
How do I make this case-insensitive, in Python 3.4.3?
When the user is asked to search for a word, I want it to be case-insensitive.
import string
usersentence= input("Please type in a sentence without punctuation: ")
usersentence = ''.join(ch for ch in usersentence if ch not in…

Rob Thomas
- 5
- 6
-2
votes
1 answer
Don't know what pattern and matcher does
Hi this is part of an example question..I would like to know what exactly this code does.
if (Pattern.compile(".*" + search + ".*", Pattern.CASE_INSENSITIVE).matcher(one).matches());

Me..
- 19
- 5
-2
votes
3 answers
C# - How can I correct string case by using HashSet
Given a hash set such as:
HashSet names = new HashSet(StringComparer.OrdinalIgnoreCase)
{
"Alice",
"Bob",
"Charles",
}
How can I use this hash set to find the mapped value of a case insensitive string? For example, if I…

GoCurry
- 899
- 11
- 31
-2
votes
1 answer
Java Case Insensitive Method Breakdown and Explanation
public class StringMatchesCaseInsensitive
{
public static void main(String[] args)
{
String stringToSearch = "Four score and seven years ago our fathers ...";
// this won't work because the pattern is in upper-case
…

Syukri Shukor
- 49
- 6
-2
votes
2 answers
Can't make the lc parameter work?
I'm trying to create a simple if statement and want it to ignore case.
This is my pseudo code:
if (Lowercase $xxx notequal lowercase "xxx")
{......}
I've tried:
if ( -lc $ConfigAppUsers -ne -lc "No" )
if ( lc $ConfigAppUsers -ne lc "No" )
if…

David Gidony
- 1,243
- 3
- 16
- 31
-2
votes
2 answers
Perl : Get array of all possible cases of a string
I need to get an array of all possible cases of a string. Like it's written here:
Combination of all possible cases of a string
How do I do that in Perl efficiently?
I want something like this:
print "$_\n" for GetCases('perl');
#…

theoden8
- 773
- 7
- 16
-2
votes
4 answers
Python string.lower() not working?
I am trying to create a case-insensitive user input choice. But what I think should be correct isn't working. This is the relevant snippet of code:
while True:
search = raw_input("Choose search A or B: ")
search = search.lower()
if…

emiden
- 13
- 1
- 3
-2
votes
4 answers
Is there a function that will ignore capital letters in javascript?
i have a chatbot that answers questions only if i write them the same way as in the code Ex: If i wrote the tag "Hello" it will not answer if i say in the chatbot "hello" . I have to write it with a capital letter like in the code. Is there a…

user2505070
- 1
- 1
-2
votes
1 answer
Need Python to accept upper and lower case input
I want my Python code to accept both uppercase and lowercase input.
I've tried casefold, but with no luck. Any help?
advice =""
while advice !=("Yes"):
print("Would you like some advice!")
advice = input("Yes or No? ")
print("Always…

Diane Collins
- 9
- 1
- 1
-2
votes
1 answer
How to compare strings at C# like in SQL server case insensitive and accent insensitive
Alright here 4 words which are equal at SQL server Latin1_General_100_CI_AI collation which is case insensitive and accent insensitive
taraflı
TaraFLI
TARaFLİ
Tarafli
However i could not find a way to compare these as equal at C# .net 4.5.1
Are…

Furkan Gözükara
- 22,964
- 77
- 205
- 342
-2
votes
1 answer
Camel Case and case insensitive
I would like your opinion about using Upper or lowerCamelCase in a case insensitive and procedural language (Oracle PL/SQL).
Some guys wanna use this pattern in my job, but the programmers don't like the idea...
Oracle Forms and Reports do not…

user1819650
- 3
- 3
-3
votes
2 answers
How can I ignore case sensitivity in Visual Basic?
My code below doesn't work:
For i As Integer = 0 To ListBox1.Items.Count - 1
If ListBox1.Items(i).ToString = name
And ListBox2.Items(i).ToString = founds
And ListBox3.Items(i).ToString = foundss Then
found = (i)
…
-3
votes
1 answer
Oracle Case Insensitive settings
I am tring to set case insensitive parameters like bellow commands
ALTER SESSION SET NLS_COMP=LINGUISTIC;
ALTER SESSION SET NLS_SORT=BINARY_CI;
and
ALTER SYSTEM SET NLS_COMP=LINGUISTIC;
ALTER SYSTEM SET NLS_SORT=BINARY_CI;
but when It doesnt…

A. Zalonis
- 1,599
- 6
- 26
- 41