title: Non capturing branch reset regex in NodeJS
body: <p><a href="https://regex101.com/r/UXnhTy/1" rel="nofollow noreferrer">https://regex101.com/r/UXnhTy/1</a></p>
  
  <pre><code>var date = /(?|(Sat)ur|(Sun))day/;
  
  console.log(date.exec("Sunday"));
  </code></pre>
  
  <p>This fails with:</p>
  
  <pre><code>SyntaxError: Invalid regular expression: /(?|(Sat)ur|(Sun))day/: Invalid group
  </code></pre>
  
  <p>Is there a version of NodeJS that supports this?  Or some library out there that </p>
  
  <p>I tested this with nodejs v8.12.0</p>