An operation is case sensitive when uppercase and lowercase characters are treated differently.
Questions tagged [case-sensitive]
1180 questions
1580
votes
16 answers
How do I commit case-sensitive only filename changes in Git?
I have changed a few files name by de-capitalize the first letter, as in Name.jpg to name.jpg. Git does not recognize this changes and I had to delete the files and upload them again. Is there a way that Git can be case-sensitive when checking for…
Gil Shulman
- 15,819
- 3
- 10
- 4
542
votes
10 answers
Changing capitalization of filenames in Git
I am trying to rename a file to have different capitalization from what it had before:
git mv src/collision/b2AABB.js src/collision/B2AABB.js
fatal: destination exists, source=src/collision/b2AABB.js, destination=src/collision/B2AABB.js
As you can…
knpwrs
- 13,484
- 10
- 56
- 98
452
votes
14 answers
Contains case insensitive
I have the following:
if (referrer.indexOf("Ral") == -1) { ... }
What I like to do is to make Ral case insensitive, so that it can be RAl, rAl, etc. and still match.
Is there a way to say that Ral has to be case-insensitive?
Nate Pet
- 38,422
- 114
- 251
- 393
410
votes
9 answers
Case insensitive regular expression without re.compile?
In Python, I can compile a regular expression to be case-insensitive using re.compile:
>>> s = 'TeSt'
>>> casesensitive = re.compile('test')
>>> ignorecase = re.compile('test', re.IGNORECASE)
>>>
>>> print casesensitive.match(s)
None
>>> print…
Mat
- 67,636
- 33
- 83
- 106
320
votes
17 answers
Should URL be case sensitive?
I noticed that
HTTP://STACKOVERFLOW.COM/QUESTIONS/ASK
and
http://stackoverflow.com/questions/ask
both works fine - actually the previous one is converted to lowercase.
I think that this makes sense for the user.
If I look at Google then this URL…
Imageree
- 4,303
- 5
- 24
- 33
311
votes
11 answers
How can I make SQL case sensitive string comparison on MySQL?
I have a function that returns five characters with mixed case. If I do a query on this string it will return the value regardless of case.
How can I make MySQL string queries case sensitive?
StevenB
- 3,145
- 2
- 13
- 4
276
votes
11 answers
git mv and only change case of directory
While I found similar question I didn't find an answer to my problem
When I try to rename the directory from FOO to foo via git mv FOO foo I get
fatal: renaming 'FOO' failed: Invalid argument
OK. So I try git mv FOO foo2 && git mv foo2 foo
But…
oschrenk
- 3,740
- 4
- 20
- 25
241
votes
6 answers
How can I convert uppercase letters to lowercase in Notepad++
I use Notepad ++ for coding mostly.
How can I convert capital letters to lowercase and vice versa?
wordpressm
- 2,971
- 3
- 16
- 29
239
votes
6 answers
Case insensitive searching in Oracle
The default behaviour of LIKE and the other comparison operators, = etc is case-sensitive.
Is it possible make them case-insensitive?
sergionni
- 12,462
- 41
- 121
- 182
216
votes
11 answers
Is SQL syntax case sensitive?
Is SQL case sensitive. I've used MySQL and SQL Server which both seem to be case in-sensitive. Is this always the case? Does the standard define case-sensitivity?
Steve T
- 7,469
- 6
- 41
- 64
191
votes
3 answers
MySQL case sensitive query
This has been asked on this site before but I couldn't find a sufficient answer. If I'm doing a query like:
Select Seller from Table where Location = 'San Jose'
How can I make it return only Sellers with Location 'San Jose' instead of 'san jose' or…
Michael Liao
- 2,433
- 3
- 15
- 10
188
votes
5 answers
Are table names in MySQL case sensitive?
Are table names in MySQL case sensitive?
On my Windows development machine the code I have is able to query my tables which appear to be all lowercase. When I deploy to the test server in our datacenter the table names appear to start with an…
benstpierre
- 30,487
- 46
- 163
- 272
186
votes
4 answers
Are PostgreSQL column names case-sensitive?
I have a db table say, persons in Postgres handed down by another team that has a column name say, "first_Name". Now am trying to use PG commander to query this table on this column-name.
select * from persons where first_Name="xyz";
And it just…
5122014009
- 3,072
- 5
- 20
- 33
127
votes
5 answers
Is Java RegEx case-insensitive?
In Java, when doing a replaceAll to look for a regex pattern like:
replaceAll("\\?i\\b(\\w+)\\b(\\s+\\1)+\\b", "$1");
(to remove duplicate consecutive case-insensitive words, e.g. Test test), I'm not sure where I put the ?i. I read that it is…
Crystal
- 25,222
- 53
- 203
- 370
124
votes
10 answers
Case conventions on element names?
Are there any formal recommendations on element casing in XML?
I know XHTML uses lowercase element names (as opposed to HTML which canonically uses uppercase but is case-insensitive.)
But I'm talking about XML for generic…
Ian Boyd
- 220,884
- 228
- 805
- 1,125