title: Google Tag Manager PageView Trigger RegEx issue
body: <p>I'm working on a regex expression that will match the website homepage with these conditions (Brackets are for optional strings/characters):</p>
  
  <pre><code>Http(s)://(www.)example.com(/)(?parameter=value)
  </code></pre>
  
  <p>In core what it tries to do is:</p>
  
  <ul>
  <li>Include Http(s)</li>
  <li>Exclude all subdomains apart from www.</li>
  <li>Get the URL piece (This may be the root or a subdirectory)</li>
  <li>Include an optional trailing slash</li>
  <li>Include any parameters if exists</li>
  </ul>
  
  <p>This is what I came up with:</p>
  
  <pre><code>(https?:\/\/(?:www\.|(?!www))(example\.com)|www\.(example\.com))((\/?\?\S*)|(\/?\s))
  </code></pre>
  
  <p>Every RegEx tester I try confirmes it is working (And I tried numerous other ways that were also working), but I'm having one single issue on my website:</p>
  
  <p>I'm using this expression to fire tags in specific pages in GTM. But Google Analytics says the RegEx doesn't match the homepage. </p>
  
  <p>It does work when there are parameters and all other portions are matching. Only the root domain does not for some reason when I update my GTM tag trigger.</p>
  
  <p><a href="https://example.com/" rel="nofollow noreferrer">https://example.com/</a> DOES NOT MATCH <strong>(Problem here!)</strong></p>
  
  <p><a href="https://example.com/?parameter=value" rel="nofollow noreferrer">https://example.com/?parameter=value</a>  MATCH (As intended)</p>
  
  <p><a href="https://example.com/child-page" rel="nofollow noreferrer">https://example.com/child-page</a> DOES NOT MATCH (As intended)</p>
  
  <p>Where is the issue? I'd appreciate any help on this.</p>