title: Split a string by spaces using regex
body: <p>Suppose I have a string <code>str = "a b c d e"</code> . <code>str.split(' ')</code> gives me an array of the elements [a,b,c,d,e]. 
  How do i use regex to get this match?</p>
  
  <p>eg:
  str.match(/some regex/) gives ['a','b','c','d','e']</p>