How to Get All Uppercase Words from a String in JavaScript

And all lowercase words, too

On rare occasions, Google surprises you by returning no useful information for your search. Extracting numbers and retrieving all uppercase words from a given string in JavaScript were two such problems. In the latter case, there were all kinds of regex examples to find capitalized words or uppercase letters, but not the uppercase words. [Read More]
When you purchase through links on, I may earn an affiliate commission.