title: Regex polish: how not to include quotes on quoted substrings in search
body: <p>I've written a regex to split a search string into its component parts.  Features include:</p>
  
  <ul>
  <li>Operators: <code>+</code>, <code>-</code>, <code>AND</code>, <code>OR</code></li>
  <li>Word grouping by quotes (single and double for now)</li>
  <li>Correctly ignoring apostrophes</li>
  </ul>
  
  <p>So:</p>
  
  <pre><code>((?&lt;=^|\s)(?:[\+\-]?"[^"]+"(?=\s|$)|[\+\-]?'[^']+'(?=\s|$)|[\+\-]?\S+|AND|and|OR|or)(?=$|\s))
  </code></pre>
  
  <p>What is the easiest way to exclude the delimiter quotes from the result matches?  Example:</p>
  
  <pre><code>lsdkjflws's ldkj and "lfldkfjs's ldkjfls" lskdj
  </code></pre>
  
  <p>results in these pieces:</p>
  
  <ul>
  <li>lsdkjflws's</li>
  <li>ldkj</li>
  <li>and</li>
  <li>"lfldkfjs's ldkjfls"</li>
  <li>lskdj</li>
  </ul>
  
  <p>I don't need to do this, I'd just like to accomplish one more step in the regex.</p>