title: Groovy Regex filter out pattern except when it's inside quotes
body: <p>For an input string like:</p>
  <pre><code>10,14,&quot;1011 testing 1&quot;,10,&quot;1022 testing 2&quot;,10,&quot;1033, 234, testing 3&quot;
  </code></pre>
  <p>where those double quote characters are a part of the string, I need to set a pattern that recognizes the numbers and commas following them, but not when they're inside the quotes.</p>
  <p>I'm using it in groovy code, so I'm doing a replaceAll call where the regex max means I am going to replace it with an empty string (&quot;&quot;).</p>
  <p>That input string needs to become:</p>
  <pre><code>&quot;1011 testing 1&quot;,&quot;1022 testing 2&quot;,&quot;1033, 234, testing 3&quot;
  </code></pre>
  <p>This:</p>
  <pre><code>[0-9]+,
  </code></pre>
  <p>gets me to recognize the numbers followed by commas.  But how do I say that last part about not when inside double quotes?  Is there a way to say as long as there are an even number of double quotes before the match?</p>
  <p>I see other posts that are somewhat similar, but they're not quite the same.</p>