title: Regex to find png-gif-jpg image links in HTML of CKeditor
body: <p>I am using the following regex to intercept posted image links in CKeditor: </p>
  
  <pre><code>var editorContent = String(qa_ckeditor_content.getData());
  if( editorContent.match(/(https?:\/\/\S+\.(?:jpg|png|gif|jpg&lt;br|png&lt;br|gif&lt;br|jpg&lt;\/p&gt;|png&lt;\/p&gt;|gif&lt;\/p&gt;))\s+/) != null ) {
      alert('Sorry, image links not allowed.');
      return false;
  }
  </code></pre>
  
  <p>However, this will not find something like: </p>
  
  <pre><code>&lt;a href="#"&gt;myimage.png&lt;/a&gt;
  </code></pre>
  
  <p>I am trying to find the regex the looks for <code>png&lt;...</code> (plus following characters). I tried that using a dot which seems not correct:</p>
  
  <pre><code>/(https?:\/\/\S+\.(?:jpg|png|gif|jpg&lt;.|png&lt;.|gif&lt;.))\s+/
  </code></pre>
  
  <p>I know that this is a beginner question, but I failed finding the right solution :-(</p>
  
  <p>Thank you for your time!</p>