I'm aware that there is Edit > Change Case
menu. But there's no option for sentence case.
How do I achieve this? Is this possible for regex to achieve this?
One of the most popular code and text editors, Sublime Text also includes a capitalization tool. Just select your text, click the Edit menu, and select Convert Case followed by the case you want.
Capitalisation is the writing of a word with its first letter in uppercase and the remaining letters in lowercase. Capitalisation rules vary by language and are often quite complex, but in most modern languages that have capitalisation, the first word of every sentence is capitalised, as are all proper nouns.
CamelCase Words are written without spaces, and the first letter of each word is capitalized. Also called Upper Camel Case or Pascal Casing. lowerCamelCase A variation of Camel Case in which the fist letter of the word is lowercase, e.g. iPhone, iPad, etc.
Find:
<h4>(.)(.*)</h4>
Replace:
<h4>\u\1\L\2</h4>
That would make
<h4>This Is A Demo</h4>
into
<h4>This is a demo</h4>
You can use this regex:
find
(^|\.\s|…\s)([a-z])
and replace with
\1\u\2
Explanation:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With