Assume you have a string "HelloWorld" and you need to show as "Hello World". How you can achieve it using Jquery.
It can be done in a very simpler way as below:
"Your string".replace( /([a-z])([A-Z])/g, "$1 $2")
so here it will be "HelloWorld".replace( /([a-z])([A-Z])/g, "$1 $2") will produce "Hello World"
Enjoy!
It can be done in a very simpler way as below:
"Your string".replace( /([a-z])([A-Z])/g, "$1 $2")
so here it will be "HelloWorld".replace( /([a-z])([A-Z])/g, "$1 $2") will produce "Hello World"
Enjoy!