title: PHP preg_replace img that contains specific string inside src element
body: <p>I want to replace any html image tag that contains a specific string inside the "src" attribute.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;img id="IMG1" src="cid:image001.jpg@01CFA26C.40AE5BD0"/&gt;
  </code></pre>
  
  <p>Should be replaced with "SOME STRING".</p>
  
  <p>Images that contain a valid URL must not be replaced:</p>
  
  <pre><code>&lt;img id="IMG1" src="http://someurl/image.png"/&gt;
  </code></pre>
  
  <p>Can someone help me getting the correct regular expression for that?</p>
  
  <p>EDIT:
  This one is my basic example but it replaces every image tag. I tried to get it on my own but unfortunately it didn't work:</p>
  
  <pre><code>preg_replace("/&lt;img[^&gt;]+\&gt;/i", "SOME STRING", $myBaseString)
  </code></pre>
  
  <p>Thanks a lot.</p>
  
  <p>Philip</p>