title: Javascript split string on space or on quotes to array
body: <pre><code>var str = 'single words "fixed string of words"';
  var astr = str.split(" "); // need fix
  </code></pre>
  
  <p>I would like the array to be like this:</p>
  
  <pre><code>var astr = ["single", "words", "fixed string of words"];
  </code></pre>