title: Regex pattern where matches img tags
body: <p>Using MVC, look at this example where we have the following HTML code:</p>
  
  <pre><code>&lt;p&gt;Duma&lt;/p&gt;&lt;img url='..' /&gt;&lt;p&gt;Duma&lt;/p&gt;
  </code></pre>
  
  <p>I would like that print only the content of the tags, as:</p>
  
  <pre><code>Duma [IMAGE] Duma
  </code></pre>
  
  <p>Removing the image (showing [IMAGE]) tags and showing only the text (as innerText)</p>
  
  <p>I decided to create an extension where until this moment, shows only</p>
  
  <pre><code>Duma Duma
  
  public static class StringExtensions
  {
      public static string StripHtml (this string inputString)
      {
         return Regex.Replace 
           (inputString, "&lt;.*?&gt;", string.Empty);
      }
  }
  </code></pre>
  
  <p>How can I do to add [IMAGE] everytime the regex matches with <code>img tags</code></p>