title: Javascript Regex - ignoring certain characters between 2 chars
body: <p>I have a need to split a string on space character (' ') but <strong>while excluding any spaces</strong> that come within 2 specific characters (say single quotes).</p>
  
  <p>Here is an example string:</p>
  
  <blockquote>
    <p>This-is-first-token This-is-second-token 'This is third token'</p>
  </blockquote>
  
  <p>The output array should look like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>[0] = This-is-first-token
  [1] = This-is-second-token
  [2] = 'This is third token'
  </code></pre>
  
  <p>Question:
  Can this be done elegantly with regular expression?</p>