title: Regex equals condition except for certain condition
body: <p>I have written the following Regex in PHP for use within preg_replace().</p>
  
  <pre><code>/\b\S*(.com|.net|.us|.biz|.org|.info|.xxx|.mx|.ca|.fr|.in|.cn|.hk|.ng|.pr|.ph|.tv|.ru|.ly|.de|.my|.ir)\S*\b/i
  </code></pre>
  
  <p>This regex removes all URLs from a string pretty effectively this far (though I am sure I can write a better one).  I need to be able to add an exclusion though from a specific domain.  So the pseudo code will look like this:</p>
  
  <pre><code>IF string contains: .com or .net or. biz etc... and does not contain: foo.com THEN execute condition.
  </code></pre>
  
  <p>Any idea on how to do this?</p>