title: Using preg_replace to remove unwanted links
body: <p>I'm trying to remove something like this:</p>
  
  <pre><code>&lt;a href="http://women.domain.com"&gt;women.domain.com&lt;/a&gt;
  </code></pre>
  
  <p>I thought it should be:</p>
  
  <pre><code>$this-&gt;tresc[$i][description]=preg_replace("/\&lt;a(.*)href=(\"|')http:\/\/women\.domain\.com.*(\"|')(.*)\/\&gt;/i", "",$this-&gt;tresc[$i][description]);
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p>For images I use this and it's working perfectly:</p>
  
  <pre><code>$this-&gt;tresc[$i][description]=preg_replace("/\&lt;img(.*)src=(\"|')http:\/\/women\.domain\.com.*(\"|')(.*)\/\&gt;/i", "",$this-&gt;tresc[$i][description]);
  </code></pre>