← All writingjavascriptjavascript split string into array by space May 14, 2010•1 min read•Fred Yang s.split(/\s+/); Please enable JavaScript to view the comments powered by Disqus.