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 Jul 26 '19

🎩 JavaScript Enhanced Scss mixins! 🎩 concepts explained

In the next post we are going to explore CSS @apply to supercharge what we talk about here....

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