title: PHP RegEx Negation Word
body: <p>My preg_replace pattern regex code here..</p>
  
  <pre><code>/&lt;img(.*?)src="(.*?)"/
  </code></pre>
  
  <p>This is my replace code..</p>
  
  <pre><code>&lt;img$1src="'.$path.'$2"
  </code></pre>
  
  <p>So i want to negate/exlude a condition..
  If img tag have a <strong>rel="customimg"</strong>, dont preg_replace so skip it..</p>
  
  <p>Example: Skip This Line</p>
  
  <pre><code>&lt;img rel="customimg" src="http.."&gt;
  </code></pre>
  
  <p>What might add to this regex pattern?</p>
  
  <p>I searched another post, but I couldn't exactly..</p>