from henri d'oriona --> Henry d'Oriona
All I can get is something like Henry D'oriona or best case Henry D'Oriona.
Thanks for your help
I have a plain text document I process with Visual Studio Code, with about 1000 lines.
Each line contains a sentence that starts with an English letter.
I desire to uppercase every first English letter if it isn't uppercased already, with regex
To clarify, I got:
U+0020 (a whitespace character), in all lines.
How could I uppercase every first English letter that isn't uppercased already, with regex?
I'd like to ask you if there is a reason to capitalize all items in menus, etc in application user interface, for example
Why shouldn't I just label these items as File->Page setup etc.? This kind of capitalization just seems wrong to me - but I am not a native English speaker, so I just might not dig it.
First I have to receive a string from the user. The function would be capitalizing the introduced string object. It would make the words start with uppercased characters and all remaining characters have lower case. Here is what I did:
ssplit = s.split()for z in s.split(): if ord(z) < 65 or ord(z)>90: l=(chr(ord(z)-32)) new = l + ssplit[1:] print(new) else: print(s)
I can't see what I am doing wrong.
How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
"this is a test"->
"This is a test"
"the Eiffel Tower"->
"The Eiffel Tower"