title: Regex match all excluding a delimiter
body: <p>I have two sample strings of code like so:</p>
  <pre class="lang-js prettyprint-override"><code>&quot;const x = anything;&quot;
  &quot;const {a, b, c, d} = anything;&quot;
  </code></pre>
  <p>I want to match <code>x</code>, as well as <code>a</code>, <code>b</code>, <code>c</code>, and <code>d</code> (none of which are literal, they can be any valid JavaScript variable character(s), but are delimited by commas) if they are preceded by the keyword <code>const</code>. The latter is the destructuring syntax.</p>
  <p>Context: this is to extend syntax highlighting of code tokens in PrismJS.</p>
  <p>What I've tried so far:</p>
  <pre class="lang-js prettyprint-override"><code>  Prism.languages.insertBefore(lang, 'operator', {
      constant: {
        pattern: /(const\s?{?)[\s_$a-zA-Z\xA0-\uFFFF,]*(?!:)/,
        lookbehind: true,
      },
    });
  </code></pre>
  <p>The comma is inside the <code>[]</code>, and I am not sure of how to &quot;continue&quot; matching each variable inside the braces <strong>without</strong> including the comma character.</p>