title: Remove other domains with Regex
body: <p>So i have a preg_replace that replace all the links in a string with "[link removed]" :</p>
  
  <pre><code>/((https?:\/\/)?(\w+\.)+[a-z|A-Z]{2,}(:\d+)?((\/\w+)+(\.\w+)?)?\/?)/
  
  Simplified:
  http/https, subdomain, domain, tld, port, folder/file, extension, "/"
  </code></pre>
  
  <p>But i need to filter in a way that if the domain is "example.com" nothing is replaced like :</p>
  
  <pre><code>"http://notmydomain.com" -&gt; "[link removed]"
  "example.com" -&gt; "example.com"
  </code></pre>