title: Regex to match all sub direcotries of a domain except one
body: <pre><code>^(?!example.com\/checkout).*
  </code></pre>
  <p>I want to match the domain name and all its sub-directories <code>example.com/xyz</code> except checkout directory <code>example.com/checkout</code></p>