I have some words like \"Light Purple\" and \"Dark Red\" which are stored as \"LightPurple\" and \"DarkRed\". How do I check for the uppercase letters in the word like \"Lig
You could compare each character to a string of uppercase letters.
function splitAtUpperCase(input){ var uppers = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //start at 1 because 0 is always uppercase for (var i=1; i
The output is an array with the first and second words.