title: Regex to match images followed with a space in an HTML string
body: <p>I'm trying to write a regex that matches any <code>&lt;img /&gt;</code> tag followed with a space, followed with some text. </p>
  
  <p>In other words, I want these lines to be matched:</p>
  
  <ul>
  <li><code>Hello &lt;img /&gt; world!</code></li>
  <li><code>&lt;span&gt;Hello &lt;img /&gt;&lt;/span&gt; world!</code></li>
  <li><code>&lt;span&gt;Hello &lt;img /&gt; &lt;/span&gt;world!</code></li>
  </ul>
  
  <p>But not those ones:</p>
  
  <ul>
  <li><code>Hello &lt;img /&gt;!</code></li>
  <li><code>&lt;span&gt;Hello &lt;img /&gt;&lt;/span&gt;!</code></li>
  <li><code>&lt;span&gt;Hello &lt;/span&gt; world!</code></li>
  <li><code>&lt;span&gt;Hello &lt;img /&gt;&lt;/span&gt;my world!</code></li>
  </ul>
  
  <p>While I managed to match images using <code>&lt;img[\w\W]+?\/&gt;</code>, I can't figure out how to match the space followed with text, especially when some closing tags are located in between...</p>
  
  <p>See RegExr <a href="http://regexr.com/3frg4" rel="nofollow noreferrer">here</a>.</p>