title: How to reference a variable in regex URL?
body: <pre class="lang-js prettyprint-override"><code>router.get(&quot;/(A|B)/account/&quot;, async (req, res) =&gt; {});
  </code></pre>
  <p>How to do I reference the <code>(A|B)</code> inside of the async function?</p>