I have strings with extra whitespaces, each time there's more than only one whitespace I'd like it be only one.
Anyone? I tried searching google, but nothing worked for me.
This question is related to
Something like this:
var s = " a b c ";_x000D_ _x000D_ console.log(_x000D_ s.replace(/\s+/g, ' ')_x000D_ )