title: Splitting string into array of words using Regular Expressions
body: <p>I'm trying to split a string into an array of words, however I want to keep the spaces after each word.  Here's what I'm trying:</p>
  
  <pre><code>var re = /[a-z]+[$\s+]/gi;
  var test = "test   one two     three   four ";
  var results = test.match(re);
  </code></pre>
  
  <p>The results I expect are:</p>
  
  <pre><code>[0]: "test   "
  [1]: "one "
  [2]: "two     "
  [3]: "three   "
  [4]: "four "
  </code></pre>
  
  <p>However, it only matches up to one space after each word:</p>
  
  <pre><code>[0]: "test "
  [1]: "one "
  [2]: "two "
  [3]: "three "
  [4]: "four "
  </code></pre>
  
  <p>What am I doing wrong?</p>