title: JavaScript URL wildcard to mean any number or letter
body: <p>I have two urls</p>
  <pre><code>https://www.etsy.com/cartsdgsr &lt;random characters after cart&gt;
  </code></pre>
  <p>and</p>
  <pre><code>https://www.etsy.com/cart/&lt;random numbers&gt;/review
  </code></pre>
  <p>at the beginning of the <code>js</code> page I run</p>
  <pre><code>if (document.URL.match(&quot;https://www.etsy.com/cart/*/review&quot;)) {
      //run this code here
   } else if (document.URL.match(&quot;https://www.etsy.com/cart*&quot;)) {
    //run code here
     } 
  </code></pre>
  <p>but the <code>*</code> is not working how would I properly write this?</p>