Skip to content

How to use regex instead of set to convert exception words to lower case?published: true---{% stackoverflow 59848071 %}

jmjjeena profile image J E E N A R J U N twitter logo ・1 min read

This is what I have done so far. I am capitalizing the first alphabet of all the words except 'by','and', 'of', 'it', 'the', 'at' etc., (the list is goes on).

Expected output: Dance by Cow

Output I received was : Dance by Cow

But now I want to use regex…

twitter logo DISCUSS
markdown guide
Classic DEV Post from Aug 13 '19

How open-source will Tumblr become?

In case you hadn't read the news, Verizon sold Tumblr to Automattic. Verizon owned Tumblr after it ac...

J E E N A R J U N profile image
Fashion Management graduate to Software Engineer!