somestring.replace(/\s+/g,'') //\s = wildcart for any space (including tab)
Thanks. Sorry: what "/g" stands for?
get every occurence, not just the first ...
If you want to safe 1-space occurences just a small correction:
var myRowCode = mySplitData.replace(/\s\s+/g,'');
Great! Could you please point me to some source where I can find something more about these wildcarts?