title: Regex remove only certain tags from html
body: <p>I want to remove only a set of html tags (b,i,p, end of tags) from a given html.</p>
  
  <pre><code>Pattern p = Pattern.compile("&lt;[^bip/](.*?)&gt;");
  </code></pre>
  
  <p>However, this also removes img tag coz of .*. What should I change to prevent removal of <code>img</code></p>
  
  <p><strong>EDIT</strong>: I'm doing this on Android app. I know regex is the worst way, but Inbuilt spannable classes are not working as expected and I cant import a library just for html parsing. My purpose is to just detect if other tags exist OR not. Also, html is pretty small (upto 10 lines max), performance shouldn't be a problem.</p>