Skip to main content
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(...
Antarctica-UFO's user avatar
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....
user25882303's user avatar
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(...
Andrey's user avatar
  • 13
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 ...
resu-xuniL's user avatar
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, ...
cocoajoa's user avatar
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 ...
AsherExcel's user avatar
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" ...
Programmer0403's user avatar
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', ...
ARAT's user avatar
  • 963
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 ...
Greg's user avatar
  • 111
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 ...
McMurphy's user avatar
  • 1,284
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 <- ...
user18081990's user avatar
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....
advice2020's user avatar
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 ...
numbskull's user avatar
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 ...
ypdev19's user avatar
  • 185
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 ...
Anton's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
22