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