Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find capital word in string javascript

const str = "HERE'S AN UPPERCASE PART of the string";
const upperCaseWords = str.match(/([A-Z][A-Z]+|[A-Z])/g);

console.log(upperCaseWords);
Source by www.techighness.com #
 
PREVIOUS NEXT
Tagged: #find #capital #word #string #javascript
ADD COMMENT
Topic
Name
3+5 =