I have a problem when i want to seprate a single string into two different string.
Like-
I have a Div
VipinTyagi
and I want that when a jquery applied to this div it show the result as
Vipin Tyagi
Means when a Capital letter comes in the string it automatically split in two or more parts ,depends how many capital letters come into that string......


Manoj BhoirRank #599 · 4K reputationPosted Jun 3, 2015, 3:34 AM EDT
var replaced = token.split(/(?=[A-Z])/);
alert(replaced);
Vipin TyagiRank #868 · 2.5K reputationPosted Jun 3, 2015, 4:14 AM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jun 3, 2015, 8:02 AM EDT