JSFiddle - React, Tailwind, and code Playground
by ethagnawl
JavaScript
var subjects = [
'Introduction to interesting things Cats and dogs',
"I can't believe it's not butter Á machine lord",
'I Intergalactic proton powered advertising droids '
];
subjects = subjects.join(' ').split(/([A-Z][^A-Z]+)/).filter(function (str) {
return str.length;
});
document.write(subjects.join(' | '))