title: Match everything except for characters within quotes
body: <p>After some playing around I came up with a way to capture characters within single/double quotes:</p>
  
  <pre><code>['"](?:[^'"]*?(?:\\")*)*["']
  </code></pre>
  
  <p>Not sure if this is entirely correct. In any event, I am now trying to match everything BUT these.</p>
  
  <p>Example:</p>
  
  <p><code>'stringA' '\"stringB\"' variableA variableB</code></p>
  
  <p>The above regex matches: <code>'stringA'</code> <code>'\"stringB\"'</code></p>
  
  <p>I would like to match <code>variableA</code> <code>variableB</code></p>
  
  <p>Is there a way I can achieve this with <code>Perl</code>? I was trying to use <code>negative/positive lookahead/behinds</code> but I encountered issues as my <code>lookbehind</code> had <code>\s*</code> which was not allowed.</p>
  
  <p>Thanks for your help.</p>