An operation is case insensitive when uppercase and lowercase characters are equally treated.
Questions tagged [case-insensitive]
1146 questions
-1
votes
1 answer
Javscript Switch expression - How can it be made case insensitive?
I have two geojson files with the same key/labels but have different cases:
feature.properties.STATUS and feature.properties.status
I wish to test both file's label's values with a single switch statement:
function PathStyle(feature) {
…

DaveF
- 113
- 10
-1
votes
1 answer
Why when my python code writes files, it seems case-insensitive?
I have a dictionary and want to write the values to files whose names are based on the keys. My keys can be very similar, a letter can be upper or lower case.
dict_1 = {'g.XXXXX': '>g|XXXXX|1\nSRGSSAGFDRHITIFSPEGRLYQVEYAFKAINQGGLTSVAVRGKDCA', …

Fan
- 27
- 3
-1
votes
1 answer
Python case insensitive efficiently check if list of strings is contained in another string
I want to check if a list of string is contained in another string but ignoring the case
For example:
Input: 'Hello World', ['he', 'o w']
Output: [True, True]
Input: 'Hello World', ['he', 'wol']
Output: [True, False]
I can write something…

Ahsan Tarique
- 581
- 1
- 11
- 22
-1
votes
1 answer
Python Regex to Capture Proceeding Text - mixing cas insensitivity in group
Example Link
RegEx Group returning issue:
(?P(Q|A|Mr[\.|:]? [a-z]+|Mrs[\.|:]? [a-z]+|Ms[\.|:]? [a-z]+|Miss[\.|:]? [a-z]+|Dr[\.|:]? [a-z]+))?([\.|:|\s]+)?
Objective:
To extract text from proceeding transcript pdfs for each…

rnwtenor
- 13
- 2
-1
votes
1 answer
Reverse substring match in jq array
Let's say I have an array from file /some/file.json:
[
"This.FilE",
"That.file",
"Another.FIle"
]
Then I have a string x with value ThiS.FIle.is.HeRe, now I wanted to know whether any of the string in the array matched the substring in…

Gregor Isack
- 1,111
- 12
- 25
-1
votes
1 answer
How do i make my code case insensitive using the match case function
I've written a code that prompt the user for input and output the data that matches to it. I'm using the match case function how do I make case insensitive. I've tried .lower() in input but the code won't work unless i remove and its only matching…

Ephraim
- 1
-1
votes
1 answer
how do i use an array of pointers in c?
Basically i have an array of strings and i need to check if they are arranged in lexographic order (case insensitive of upper or lower case, meaning it doesn't matter which one it is). For that I took the already created strcmp function and…

rachel
- 1
- 1
-1
votes
1 answer
Case-insensitive comparison of lists
I want to make a code that to see if each new username has already been used in a website.
I have this code:
current_users = ['Rachel', 'Ross', 'Chandler', 'Joey', 'Monica']
new_users = ['Janice', 'Ben', 'Phoebe', 'JOEY']
for new_user in…

DR8
- 127
- 5
-1
votes
1 answer
Substitutions cipher only encodes when message is written in lowercase. How do you make a cipher case insensitive?
public static String Encrypt(String plaintext, String code) {
String encryptedString = "";
char[] alphabet = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
…

john
- 1
- 1
-1
votes
1 answer
Show MySQL results for words with hebrew vowels?
So in my database I have thousands hebrew words which some have different vowels.
Exmaple: אִלוּלֵא is with vowels.
Example: אלולא is without vowels.
So when I do in MySQL a simple search like:
SELECT * FROM `words` WHERE `word` = 'אלולא';
It won't…

Naveh
- 81
- 9
-1
votes
4 answers
Combine same keys in dictionary ignoring case
I've looked and looked but could not find an answer to my question. How can I combine dictionaries keys ignoring their case.
For example say I have a dictionary like this.
dict = {'a':1,'A',2}
Ignoring the case, these two keys are the same…

Buddy Bob
- 5,829
- 1
- 13
- 44
-1
votes
1 answer
Python case insensitive or sensitive strings as input
I have the following script:
ip = input('Enter your string: ')
if 'tree' in ip:
print('Correct string')
I would like to print 'Correct string' even if the user input is 'TREE' or 'tree' based on the case. How do I do that (optimally rather than…

MuSu18
- 159
- 9
-1
votes
1 answer
finding a key inside a treeMap without case sensitivity
So basically I have treeMap and I want to find keys in it the thing is that searching for ABC or Abc or aBc or abC or ABc or AbCor aBC it should return true in the containsKey after using some comparator i think.
The thing is that i already tried to…

Martim Correia
- 483
- 5
- 16
-1
votes
2 answers
Needs help on case insensitive for switch statement
How can I make my switch statement case insensitive? and Case-insensitive switch-case did not answer my question.
I have tried using the coding switch(strtolower(Q1)) and switch(Q1.toLowerCase()). Both doesn't work.
Can someone help me pls?…

Catalyst
- 426
- 3
- 12
-1
votes
1 answer
How do I search string without case sensitivity in Humio?
For instance, I'd like to match "error" with "ERROR," "Error," and of course "error." What should my query be? Thank you.

AcBap
- 79
- 1
- 1
- 10