Is it possible to split Strings in JavaScript by case such that the following string below (myString) would be converted into the array (myArray) below:
var myString = "HOWtoDOthis";
var myArray = ["HOW", "to", "DO", "this"];
I have tried the regex below, but it only splits for camelCase:
.match(/[A-Z]*[^A-Z]+/g);