I am trying to split up a string by caps using Javascript,
Examples of what Im trying to do:
\"HiMyNameIsBob\" -> \"Hi My Name Is Bob\" \"Greet
Use RegExp-literals, a look-ahead and [A-Z]:
[A-Z]
console.log( // -> "Hi My Name Is Bob" window.prompt('input string:', "HiMyNameIsBob").split(/(?=[A-Z])/).join(" ") )