Questions tagged [case-sensitive]

An operation is case sensitive when uppercase and lowercase characters are treated differently.

1275 questions
2089
votes
22 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
  • 20,909
  • 3
  • 13
  • 4
695
votes
12 answers

How do you change the 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
  • 15,691
  • 12
  • 62
  • 103
534
votes
10 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
  • 82,161
  • 34
  • 89
  • 109
498
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
  • 44,246
  • 124
  • 269
  • 414
393
votes
12 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,965
  • 2
  • 15
  • 4
354
votes
18 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,683
  • 5
  • 26
  • 35
303
votes
12 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
  • 4,080
  • 4
  • 22
  • 25
264
votes
7 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
  • 13,290
  • 42
  • 132
  • 189
262
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
  • 3,189
  • 3
  • 20
  • 29
248
votes
5 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,766
  • 6
  • 24
  • 34
229
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 insensitive. Is this always the case? Does the standard define case-sensitivity?
Steve T
  • 7,729
  • 6
  • 45
  • 65
220
votes
6 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
  • 32,833
  • 51
  • 177
  • 288
204
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,623
  • 3
  • 17
  • 10
138
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
  • 28,460
  • 62
  • 219
  • 393
130
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
  • 246,734
  • 253
  • 869
  • 1,219
1
2 3
84 85