An operation is case insensitive when uppercase and lowercase characters are equally treated.
Questions tagged [case-insensitive]
1146 questions
21
votes
8 answers
May I safely treat email addresses lower case?
In theory emails are case sensitive. But using emails as system login I want them to be all lower case (i.e. john@smith.com and John@smith.com cannot be different users).
Can this be a problem for some users who use case sensitivity in their email…

Jakob Stoeck
- 624
- 4
- 12
21
votes
1 answer
Tweaking Bash 'cd' and TAB completion to recognize spelling mistakes
I was looking for a tweak to the cd command so that it recognizes spelling mistakes of directories and auto complete similar directory names.
Right now, I have settings that recognize the spelling mistakes of directory but does not auto complete…

Vihaan Verma
- 12,815
- 19
- 97
- 126
20
votes
4 answers
Ruby on Rails find_by case insensitive
I need to find a record from 2 parameters but I need one of them to be case insensitive. The current case sensitive line is
c = Course.find_by(subject_area: area, cat_number: cat)
But I need subject_area to be case insensitive. How would I…

Dracossack
- 201
- 1
- 2
- 4
20
votes
4 answers
How to change the collation of sqlite3 database to sort case insensitively?
I have a query for sqlite3 database which provides the sorted data. The data are sorted on the basis of a column which is a varchar column "Name". Now when I do the query
select * from tableNames Order by Name;
It provides the data like this.
…

rkb
- 10,933
- 22
- 76
- 103
20
votes
2 answers
Case-insensitive Lua pattern-matching
I'm writing a grep utility in Lua for our mobile devices running Windows CE 6/7, but I've run into some issues implementing case-insensitive match patterns. The obvious solution of converting everything to uppercase (or lower) does not work so…

Nubbychadnezzar
- 203
- 1
- 2
- 4
19
votes
4 answers
Case Insensitive Pattern Matching over String Lists
I'm trying to parse command line arguments in an F# application. I'm using pattern matching over parameters list to accomplish it. Something like:
let rec parseCmdLnArgs =
function
| [] -> { OutputFile = None ; OtherParam = None }
| "/out" ::…

Mehrdad Afshari
- 414,610
- 91
- 852
- 789
18
votes
5 answers
SOLR Case Insensitive Search
I've a problem in SOLR Search. I have a data like this:
I use solr admin to find this data using query like this:
address_s:*Nadi*
and found those data. But when I use this query:
address_s:*nadi*
it doesn't found anything.I've googling and I…

Praditha
- 1,162
- 5
- 24
- 45
18
votes
1 answer
How to use iLike operator with Sequelize to make case insensitive queries
I am using Sequelize along with PostgreSQL in managing my database.
I would like to perform a case insensitive search query. When I googled it up, some people said that I can use "iLike" operator to do so. I tried to implement this way:
var…

AG_HIHI
- 1,705
- 5
- 27
- 69
18
votes
4 answers
Win32 File Name Comparison
Does anyone know what culture settings Win32 uses when dealing with case-insensitive files names?
Is this something that varies based on the user's culture, or are the casing rules that Win32 uses culture invariant?

Scott Wisniewski
- 24,561
- 8
- 60
- 89
18
votes
3 answers
Is there an efficient way to do a case-insensitive JavaScript object property name lookup?
There is a certain object I have where the exact case of the properties is not known ahead of time. For example, a property name might be "AbC" or "Abc" or "abc", etc.
I do, however, know that only one exists. That is I know there can't be both a…

Doug Lerner
- 1,383
- 2
- 17
- 36
18
votes
8 answers
What is the purpose of case sensitivity in languages?
Possible Duplicates:
Is there any advantage of being a case-sensitive programming language?
Why are many languages case sensitive?
Something I have always wondered, is why are languages designed to be case sensitive?
My pea brain can't fathom any…

Tom Gullen
- 61,249
- 84
- 283
- 456
18
votes
5 answers
Case insensitive matching in Java switch-case statement
I was wondering if there is a way to perform case insensitive match in java switch case statement. the default implementation is case sensitive. Please see the example below.
public class SwitchCaseTest {
/**
* @param args
*/
…

Punith Raj
- 2,164
- 3
- 27
- 45
18
votes
2 answers
Assuming Unicode and case-insensitivity, should the pattern ".." match "FfIsS"?
It sounds like a joke, but I can sort of prove it.
Assumptions:
Dot matches any single character.
A case-insensitive pattern matches s if and only if it matches s.toUpperCase().
All of the following is pretty logical and holds in…

maaartinus
- 44,714
- 32
- 161
- 320
18
votes
6 answers
.NET How to compare two Strings that represent filenames ignoring case correctly
Given that (at least on NTFS) the filesystem on Windows is case insensitive, I would like to compare String fileA to String fileB as such:
fileA.Equals(fileB, StringComparison.CurrentCultureIgnoreCase)
The question then becomes which culture I…

Marcus
- 181
- 1
- 3
18
votes
2 answers
How would I make Apache case insensitive using .htaccess?
I recently switched from IIS to Apache and unfortionately some of my links have capitalization issues. I have seen quite a few people talking about how to rewrite urls to be all lowercase or all uppercase but I need something to just make Apache…

user1397143
- 193
- 1
- 1
- 4