title: Regex to match any domain except two domains
body: <p>in my htaccess i'm trying to set document root for all park domains to a specific path except two main domains, so basically i need a regex to match any domain except tow domains
  i found something like this</p>
  
  <pre><code>^(?!foo$|bar$).*
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>(?&gt;[\w-]+)(?&lt;!tea|nuka-cola)
  </code></pre>
  
  <p>but can not get it work with my situation because there is a <strong>dot tld</strong> in domain name and i want to use regex there too
  here is my current regex</p>
  
  <pre><code>^(.*?)\.(com|net)$
  </code></pre>
  
  <p>instead of (.*?) i want to make exception there</p>