Questions tagged [lowercase]

Lowercase characters are letters in minuscule: a, b, c, …

Lowercase characters are letters in minuscule: a, b, c, …

In ASCII, they are the characters in the range [a-z]. But other characters (for instance accented characters like é, è, ê, à, î, ï, ù) are also considered lowercase.

The counterpart of is .


See also: Letter case on Wikipedia

1025 questions
2513
votes
9 answers

How do I lowercase a string in Python?

Is there a way to convert a string to lowercase? "Kilometers" → "kilometers" See How to change a string into uppercase? for the opposite.
Benjamin Didur
  • 25,343
  • 3
  • 15
  • 5
1741
votes
29 answers

How to convert a string to lower case in Bash

Is there a way in bash to convert a string into a lower case string? For example, if I have: a="Hi all" I want to convert it to: "hi all"
assassin
  • 19,899
  • 10
  • 30
  • 43
1213
votes
11 answers

How to convert a string to lower or upper case in Ruby

How do I take a string and convert it to lower or upper case in Ruby?
Heat Miser
  • 19,438
  • 7
  • 35
  • 38
469
votes
52 answers

How to capitalize the first character of each word in a string

Is there a function built into Java that capitalizes the first character of each word in a String, and does not affect the others? Examples: jon skeet -> Jon Skeet miles o'Brien -> Miles O'Brien (B remains capital, this rules out Title Case) old…
WillfulWizard
  • 5,340
  • 2
  • 19
  • 15
242
votes
31 answers

How do I rename all folders and files to lowercase on Linux?

I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ source code, but that shouldn't matter). Bonus points for ignoring CVS and Subversion version control files/folders. The preferred way would…
vividos
  • 6,468
  • 9
  • 43
  • 53
164
votes
11 answers

How to convert array values to lowercase in PHP?

How can I convert all values in an array to lowercase in PHP? Something like array_change_key_case?
user1163513
  • 4,087
  • 7
  • 24
  • 25
140
votes
6 answers

How do I lowercase a string in C?

How can I convert a mixed case string to a lowercase string in C?
Tony Stark
  • 24,588
  • 41
  • 96
  • 113
140
votes
7 answers

How can I convert a string from uppercase to lowercase in Bash?

I have been searching to find a way to convert a string value from uppercase to lowercase. All the search results show approaches of using the tr command. The problem with the tr command is that I am able to get the result only when I use the…
raga
  • 1,483
  • 2
  • 13
  • 13
80
votes
3 answers

Converting all text to lower case in Objective-C

I have a textfield in my iOS app where the user is supposed to input some text. But I was wondering if there is any way to convert the users input to lowercase letters. I remember in C# it was something like Convert.ToLower but I can't seem to…
inFever
  • 1,809
  • 2
  • 16
  • 19
67
votes
7 answers

.toLowerCase not working, replacement function?

The .toLowerCase method is giving me an error when I try to use it on numbers. This is what I have: var ans = 334; var temp = ans.toLowerCase(); alert(temp); And then it gives me this error: 'undefined' is not a function (evaluating…
Lucas
  • 16,930
  • 31
  • 110
  • 182
66
votes
14 answers

Dictionary to lowercase in Python

I wish to do this but for a dictionary: "My string".lower() Is there a built in function or should I use a loop?
Teifion
  • 108,121
  • 75
  • 161
  • 195
64
votes
6 answers

regex implementation to replace group with its lowercase version

Is there any implementation of regex that allow to replace group in regex with lowercase version of it?
berek
63
votes
5 answers

SQL changing a value to upper or lower case

How do you make a field in a sql select statement all upper or lower case? Example: select firstname from Person How do I make firstname always return upper case and likewise always return lower case?
Joshua Hudson
  • 2,187
  • 2
  • 20
  • 24
61
votes
8 answers

Convert whole dataframe from lower case to upper case with Pandas

I have a dataframe like the one displayed below: # Create an example dataframe about a fictional army raw_data = {'regiment': ['Nighthawks', 'Nighthawks', 'Nighthawks', 'Nighthawks'], 'company': ['1st', '1st', '2nd', '2nd'], …
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
59
votes
7 answers

Is it bad to use uppercase letters for html tags?

What is the best practice? or And why we should stick with one particular case? However all browsers seems to interpret both cases and returns the expected output.
pown
  • 1,118
  • 1
  • 16
  • 27
1
2 3
68 69