May 13, 2010

javascript split string into array by space

s.split(/\s+/);