327 questions
0
votes
1
answer
98
views
How can I capitalize the first word of each sentence of a string in PHP? [duplicate]
I am trying to capitalize the first letter of every sentence (after a period, ? or !) I can capitalize the first letter of only the first sentence. Can anyone please help?
$content_trimmed = ucfirst(...
0
votes
1
answer
49
views
Capitalize first character of GTM Data Layer Variable
I'm trying to capitalize the first character of a string from user input field. Below is the listener tag that collects the firstname data.
`<script>
(function () {
var element = document....
0
votes
2
answers
129
views
Creating a grid using javascript without display:grid
i'm currently working on an etch-a-sketch on the odin project. Here's the code I've come up with.
const container = document.querySelector(".container");
const input = document.querySelector(...
3
votes
2
answers
98
views
Substitution AND capitalize on ${var} [duplicate]
I have this piece of code :
target='xfce/*'
file_name="All files from ${target/\/*}"`
Later on, I do
echo "Copying [$file_name] folder"
and it shows :
Copying [All files from ...
2
votes
3
answers
169
views
How to capitalize sentences consisting of ?,! and punctuation at once
I am learning about .capitalize() and had a question.
I learned how to change lowercase letters to uppercase letters by dividing a string consisting of several sentences based on punctuation.
However, ...
0
votes
0
answers
27
views
.name wont capitalise? [duplicate]
trying to create a code that takes any set of data, no matter how long and wide, and creates individual charts for each column of data. Currently my .Name = ActiveSheet.Name wont capitalise the name ...
0
votes
2
answers
110
views
Split a person name at a comma and capitalize each name component
I have a name like this :
"DOE D, John"
and a name like this:
"DOE, Jane"
in the form of a string
I need to convert it to this:
"John D Doe"
and
"Jane Doe"
...
0
votes
3
answers
162
views
Unknown character for Turkish character
I have a dataframe consisting of two columns: (1) Turkish cities, (2) corresponding values.
dict_ = {'City': {0: 'ADANA',
1: 'ANKARA',
2: 'ANTALYA',
3: 'AYDIN',
4: 'BALIKESİR',
5: 'BURSA',
...
0
votes
3
answers
283
views
How to capitalize polish special letters in C++?
I've got a string I want to capitalize, but it might contain polish special letters (ą, ć, ę, ł, ń, ó, ś, ż, ź). The function transform(string.begin(), string.end(), string.begin(), ::toupper); only ...
0
votes
1
answer
62
views
How to heuristically discover Javascript input autocomplete key* events
I recently had a requirement to enforce Proper-Case in a HTML input field. CSS Text-Transform: Capitalize was 90% there but didn't down-case multiple caps. So I wrote the Javascript below.
To my ...
0
votes
1
answer
37
views
How to separate a column based on words made up only of upper case in R
I want to separate a column of string characters. In one column I want all capitilized words. The strings can have one or two uppercase words. Here is an example of the dataframe:
mydataframe <- ...
0
votes
1
answer
117
views
Using Regular Expression to capitalize all letters at beginning of filenames up to first dash
I was wondering if there was a way to use Regular Expressions to be able to captialize all letters at the beginning of filenames up to the first dash found.
Before:
Apple - Orange - Banana - Filename....
0
votes
2
answers
50
views
auto capital correct in search bar with javascript issue
hey guys I have a search bar and want to make it so when a user searches it automatically corrects and searches,
eg- user types jane doe, it will correct to Jane Doe
this is a pain as I can't add 2 ...
0
votes
3
answers
167
views
Function to title case a string using javascript
I'm currently working on a fix where there's an existing function that capitalizes each word of the given string. Each value that comes out of that function is later used to validate other logic.
So ...
0
votes
1
answer
40
views
Making a single line of fcommand to correct paragraph upper/lowwer cases
I've been solving a challenge of fixing the input paragraph into properly capitalized letters. This is my code:
return ''.join([in_text[0].upper()] + [in_text[i].lower() if in_text[i-1] != '.' or ...