title: Regex to split a string up on each {space} but not when contained in quotes
body: <p>I am not very good with regex (in fact don't know much at all). I need to create an array from a string split at the spaces BUT only when the space isn't within double quotes so:</p>
  
  <pre><code>this.line "should be 3" elements
  </code></pre>
  
  <p>would appear like:</p>
  
  <pre><code>this.line
  should be 3
  elements
  </code></pre>
  
  <p>I know I can use preg_match to get the array but I have no clue on the regex.</p>
  
  <p>p.s I have looked at other solutions in Stack Overflow but the regex doesn't seem to work with my preg_match.</p>
  
  <p>Thanks.</p>