An operation is case insensitive when uppercase and lowercase characters are equally treated.
Questions tagged [case-insensitive]
1146 questions
11
votes
3 answers
Postgres case insensitive searching with Rails
My development database is SQLite but I deploy my app to Heroku and they are using PostgreSQL.
Now sometimes I have two different results coming out if I perform searches because PostgreSQL is case-sensitive but SQLite is not.
Shouldn't Rails…

antpaw
- 15,444
- 11
- 59
- 88
11
votes
4 answers
git merge fails with "Untracked working tree file" on case change
On Mac OS X, I have two branches - say A and B - and I want to merge A into B. When I try to do git merge A on B, I get:
error: Untracked working tree file 'path/file.php' would be overwritten by merge. Aborting
This is caused by the fact that…

StasM
- 10,593
- 6
- 56
- 103
11
votes
1 answer
Case-insensitive Query
I have some ticket numbers that may have numbers and letters mixed. I'll be passing in the ticketNumberIds into this method (user input) and I want it to query against the Oracle database and have the query pick up tickets that differ by upper and…

Steve
- 11,831
- 14
- 51
- 63
11
votes
1 answer
How to prevent git from committing two files with names differing only in case?
We develop in a mixed environment - some people work on Macs and some work on Linux. This has proven to be a bit of a challenge at times, as those people who work on Linux are used to having their filesystems be case sensitive, so there's no issue…

R.M.
- 3,461
- 1
- 21
- 41
11
votes
10 answers
HTTPURLResponse allHeaderFields Swift 3 Capitalisation
Converting to Swift 3 I noticed a strange bug occur reading a header field from HTTPURLResponse.
let id = httpResponse.allHeaderFields["eTag"] as? String
no longer worked.
I printed out the all headers dictionary and all my header keys seem to be…

Mark Bridges
- 8,228
- 4
- 50
- 65
11
votes
7 answers
Make ArrayList element case-insensitive
In my Java application i need to compare two list's element whether it is similar or not.
In short suppose i have two list declared like shown below
List a = new ArrayList();
a.add("one");
a.add("three");
…

Satya
- 1,421
- 4
- 19
- 32
11
votes
1 answer
Case sensitive and insensitive in the same pattern
Thanks to the help with my previous homework question Regex to match tags like , , but not , but now I have another homework question.
I need to match tags like , (3 uppercase letters, with repeatable last two…

regex4html
- 457
- 2
- 4
- 7
11
votes
2 answers
Are uppercase utf8 characters always the same number of bytes as their lowercase variants?
Obviously it is true for the latin alphabet. But I'm asking this in a conceptual sense, across languages and the Unicode spec.
Practically this came up for comparing two strings. If you already know they aren't the same number of bytes—across all…

HostileFork says dont trust SE
- 32,904
- 11
- 98
- 167
10
votes
1 answer
SelectNodes with XPath ignoring cases
I have a problem finding elements in XPath that's contains a certain string ignoring character casing.
I want to find in a HTML page all the nodes with id contains the text "footer" ignoring it's write in uppercase or lowercase.
In my example I have…

vfportero
- 918
- 1
- 13
- 26
10
votes
1 answer
How does Windows do case-insensitive file names and paths?
On Windows, file comparisons are case insensitive operations. However, a truly case insensitive system would be sensitive to locale settings, and would have to deal with three cases, rather than two (at least, according to Unicode). For various…

Billy ONeal
- 104,103
- 58
- 317
- 552
10
votes
4 answers
Python case insensitive file name?
I need to load a file given it's name, but the name I get is case insensitive. "A.txt" could actually be "a.txt". How to do this the fast way (not generate all possible names and try each)?
user975135
10
votes
1 answer
Postgres 12 case-insensitive compare
I'm attempting to move a SQL Server DB which is used by a C# application (+EF6) to Postgres 12 but I'm not having much luck with getting case-insensitive string comparisons working. The existing SQL Server db uses SQL_Latin1_General_CP1_CI_AS…

Ziloni
- 101
- 1
- 6
10
votes
1 answer
How to make regex case-insensitive?
I have this javascript code but when i send this: asd.JPG the regex fails to me..
if (data.match(/([^\/\\]+)\.(jpg|jpeg|gif|png|tiff|tif)$/i))
return { filename: RegExp.$1, ext: RegExp.$2 };
else
return { filename: "invalid file type",…

Nir
- 2,497
- 9
- 42
- 71
10
votes
1 answer
Spring Data Mongodb findBy In case insensitive
I'm trying to create a Spring Data MongoDB repository method that could perform case insensitive search for fields from a given list, that is functionality similar to SQL 'IN' operator.
In my repository I have following methods:
User…

Sergey Shcherbakov
- 4,534
- 4
- 40
- 65
10
votes
1 answer
Part of String Case Insensitive in JavaScript Regex (?i) option not working
I am using Nodejs to build application in which I need to process certain strings I have used the JS "RegExp" object for this purpose.
I want only a part of my string in the regex to be case insensitive
var key = '(?i)c(?-i)ustomParam';
var find =…

Vipresh
- 1,250
- 15
- 31