Menu
I have this:
[CODE]replace(/(S)([A-Z])/g,’$1 $2′);
It puts a space before all capital letters.
What I am looking for it to do is to only put space before capital letters that have a non capital letter behind it. Ex. [COLOR=”SeaGreen”]ABHelloWorld[COLOR=”SeaGreen”]AB Hello World
I tried this:
[CODE]replace(/(S)([A-Z][a-z])/g,’$1 $2′);
But it only puts a space before one capital letter.
Any ideas?