Iīd like to get an array from a split thatīd remove all whitespaces from words, and return me only the words. Example:
var string = " test1 test2 test3 test4 ";
So I would want a regexp on split thatīd remove all the whitespaces, and return only the words.
The array returned would be like this ["test1", "test2", "test3", "test4"].
Actually the string have more than one (various) white spaces between the words.
The Editor text of this forum cut them out.