I have a string \"MySites\". I want to place a space between My and Sites.
\"MySites\"
My
Sites
How can I do this in jQuery or JavaScript?
regex to find lower case - upper case boundary then insert a space
ThisIsMySites $('#x').text( $('#x').text().replace(/([a-z])([A-Z])/g, "$1 $2") );
http://jsfiddle.net/uXy64/