How can I convert a string either like \'helloThere\' or \'HelloThere\' to \'Hello There\' in JavaScript?
I think this can be done just with the reg exp /([a-z]|[A-Z]+)([A-Z])/g and replacement "$1 $2".
/([a-z]|[A-Z]+)([A-Z])/g
"$1 $2"
ILoveTheUSADope -> I Love The USA Dope