How to split a string by uppercase and lowercase in JavaScript? : <p>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:</p>

<pre><code>var myString = "HOWtoDOthis";
var myArray = ["HOW", "to", "DO", "this"];
</code></pre>

<p>I have tried the regex below, but it only splits for camelCase:</p>

<pre><code>.match(/[A-Z]*[^A-Z]+/g);
</code></pre>
