DEV Community

J E E N A R J U N
J E E N A R J U N

Posted on

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

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…

Top comments (0)