Questions tagged [capitalize]

Capitalize is writing a word with its first letter as a capital letter (upper-case letter) and the remaining letters in lower case.

Capitalize is writing a word with its first letter as a capital letter (upper-case letter) and the remaining letters in lower case.

Mark the questions with this tag if it concerns automatic capitalization of strings.

If question is related to make the whole string upper-case, use tag .

279 questions
-1
votes
5 answers

Replace all non capitalised words with ruby

I would like to replace all non capitalised words in a text with "-".length of the word. For instance I have the following Text (German): Florian Homm wuchs als Sohn des mittelständischen Handwerksunternehmers Joachim Homm und seiner Frau…
-1
votes
1 answer

How to apply text formatting to a listbox in Microsoft Access using VBA?

I would like to remove comma or period and capitalize the first letter of last name, I can only do with a textbox which I have to insert last name every time Here is my code for the textbox: Private Sub Command2_DblClick(Cancel As Integer) Text19…
james
  • 11
  • 7
-1
votes
4 answers

Capitalize first letter and remove space in string

Got some code to capitalize the first letter of every word in a string. Can someone please help me update it so it also removes all spaces within the string once the first letters are Capped. return function (str) { return str.replace(/\w\S*/g,…
Richy
  • 147
  • 2
  • 12
-1
votes
4 answers

Count capitalized of each sentence in a paragraph Ruby

I answered my own question. Forgot to initialize count = 0 I have a bunch of sentences in a paragraph. a = "Hello there. this is the best class. but does not offer anything." as an example. To figure out if the first letter is capitalized, my…
mythoslife
  • 193
  • 1
  • 5
  • 19
-1
votes
1 answer

Letter → next letter and capitalize vowels

This code still doesn't seem to be working. It has no errors anymore, but it only returns blank brackets like this {}. It is supposed to turn each letter in str into the next letter and capitalize each vowel. Any ideas? function LetterChanges(str) {…
-2
votes
2 answers

Convert every other letter in String to uppercase, counting only characters java

I want to convert every other letter in a string to capital. Say I have a string: "h3e5l!@lo461!28", I need to see if the character is a letter and then convert every other letter to capital. Here is my code right now but it doesn't work and I don't…
Dave
  • 49
  • 5
-2
votes
2 answers

Capitalise part of a string in javascript

I am trying to split a string and make part of the string capitalised. however the first letter of the first word must stay lowercase. Ideally a regex that would split the string and know to capitalise the rest of that word, before splitting the…
-2
votes
4 answers

iteration with map() function

I am trying to use the map() function and capitalize all the words in the list. my_pets = ['sisi', 'bibi', 'titi', 'carla'] def capitalizing(a): for item in a: b = item.upper() return b print(list(map(capitalizing,…
rodny9
  • 43
  • 3
-2
votes
1 answer

Extract first character of each word from a text and capitalize it with a function and return method

def initials(text): result=bla bla bla return result main text=input("Please enter your text") initials(text)
-2
votes
1 answer

Python capitalizing first letter

If I want to Capitalized Just the first letter of inputed string of word and int how can i do it like: 2Bob SANdy wIwi output: 2bob Sandy Wiwi the "b" in Bob should be lowercase in the result Please need some help here, thx
-2
votes
1 answer

Capitalize ALL words in a triple String

My program has 3 Strings, that the user has already input, the purpose for this program is to capitalize all letters in the words. How do I capitalize all letters in each word using the toUpperCase(). This is what I have so far, this is a java…
-2
votes
2 answers

PHP Capitalize first letter from the ALPHABET

ucwords and ucfirst convert the first character from a string to uppercase. I need a function to capitalize the first character from the alphabet. for example: ¡hi! -> ¡Hi! the 'h' should be capital because is the first character present in the…
Diego
  • 167
  • 3
  • 12
-2
votes
1 answer

Make uppercase in array

Use of order Apartment Canada Toronto 38 37 2042 37 Appartment Building Apt 54 357 can you help for…
james
  • 11
  • 7
-2
votes
1 answer

Capitalize first letter of each line using PHP

I'd like if there was a way to capitalize the first letter of each line using PHP.
-2
votes
2 answers

How to capitalize each letter after a special letter in android?

First of all, please don't mark it as duplicate. I have a very specific problem. I have to capitalize each word's first letter. Problem is that I can't find-out when a word start. For example, I have given String: 0nd0-cathay bank (federal…
Harish Godara
  • 2,635
  • 1
  • 12
  • 29
1 2 3
18
19