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
-2
votes
4 answers

Remove lowercase letter if it is followed by an uppercase letter

The goal is to get from string $a="NewYork" new string without lowercase that stands before uppercase. In this example, we should get output "NeYork" I tried to do this through positions of small and big letters in ASCII table, but it doesn't work.…
-2
votes
2 answers

Change the case on Mc surnames to proper case

I run a function to update some columns on a few tables to change UPPERCASE to ProperCase. I didn't take into account the 'Mc' or 'Mac' surnames. So now all my McSurnames have changed to Mcsurnames. Does anyone have any scripts that would amend to…
MalcolmPH
  • 19
  • 5
-2
votes
1 answer

get all uppercase " words " from a text

I want to get all uppercase string from a text using regex and PHP, for example in this sentence " Hello FROM USA Tô ENGLAND " I want to get those words " FROM USA ENGLAND ", which means the word must have uppercase characters (all the characters)…
sayou
  • 893
  • 8
  • 29
-2
votes
4 answers

Python why doesn't .lower() apply permanently in the rest of my code?

I am learning python and in the course, I had to make a translator that transforms vowels into the letter "g". In the program, I had to check if the phrase to be translated had any uppercase vowels in order to replace them with a capital letter…
Mehdi RH
  • 322
  • 1
  • 7
  • 18
-2
votes
1 answer

How to change string to lower case?

Trying to make it so that if the user enters any vowel capitalized, it will return true. So, that's where I added the "letter = letter.toLowerCase();" but it's not working still.. public static boolean isVowel (String letter) { letter =…
jayweezy
  • 81
  • 8
-2
votes
2 answers

Using StringBuild to change string to lowercase only for uneven positioned letters

I am currently learning c# with an online tutorial. So far I have been able to solve every exercise but this one I cannot figure it out: Write a program asking the user a string. Then it will modify the string by changing uneven letters (first,…
-2
votes
1 answer

How to convert all String's to lower case in a collection of type HashSet ?

I am not sure of best way to convert all Strings in a collection to lowercase. Any thoughts? private Set email; if(userEmail instanceof Collection) { this.email = new HashSet((Collection) userEmail); …
s2990
  • 13
  • 7
-2
votes
4 answers

JavaScript code not working with "toLowerCase" on equating it with value received from prompt

let browser = prompt('Enter browser name','Enter here..'); if (browser.toLowerCase=='edge') { alert('You got the Edge!'); } else if (browser.toLowerCase=='chrome' || browser.toLowerCase=='firefox' || browser.toLowerCase=='safari' ||…
-2
votes
2 answers

How to make the first or last letter of every word in a string lowercase

Suppose we are passing a string that has several words. Would there be a way to make the first or last letter of each word in the string to be lowercase or uppercase? I tried the text info class but it only offers a capitalization method for every…
-2
votes
1 answer

"list" object have no attribute "lower"

Can't figure out whats the problem,i wanted to make a program that takes a line of strings and return the words along with their type as decribed in the "In" function. This is the code def __init__(self): self.Action = "Action" self.Noun =…
-2
votes
1 answer

Using .lower or 'or' in if __ is __ statement causes incorrect if statement flow in python 3.6

I searched and couldn't seem to find anyone who has had this same issue, although I'm very new to python and there's a great chance it is just user error. I'm having problems using both 'or' and .lower in an if statement. If i use the…
coltman151
  • 13
  • 3
-2
votes
1 answer

change case from odd/even argument

how should I define a function that takes in a string and returns the string in upper and lowercases according to even and odd indexing? def myfunc(string): for some in string: if string.index%2==0: I have written this much but I do not…
Aditya
  • 1
  • 2
-2
votes
1 answer

How to compare usernames in python (comparing lists with title case objects)?

I have the following code in Python 3.6.0. I am a newbie and have been trying to get this code to work. I don't know how to get python to recognize (and reject) if the user enters the same username with capitals letters; below is the code. I would…
-2
votes
2 answers

Split string at upper/lower case boundaries

I would like to split the following string at the upper/lower-case boundaries. How might I do this in Python and/or with a regex? For example, x = 'aagaaggagatataccATGAATTTGTCGGTTTACCCCAATTTAACCAAAgaaaacctgtacaa' split_boundaries(x) =…
saladi
  • 3,103
  • 6
  • 36
  • 61
-2
votes
2 answers

PYTHON Sort only lowercase letters in place and don't sort numbers

I have to write a code where the user inputs numbers, lowercase letters and uppercase letters. They must then be sorted and printed. The tricky part is that the numbers must stay where they are inputted and must not be sorted. The lowercase letters…