title: Python regex: remove certain HTML tags and the contents in them
body: <p>If I have a string that contains this:</p>
  
  <pre><code>&lt;p&gt;&lt;span class=love&gt;&lt;p&gt;miracle&lt;/p&gt;...&lt;/span&gt;&lt;/p&gt;&lt;br&gt;love&lt;/br&gt;
  </code></pre>
  
  <p>And I want to remove the string: </p>
  
  <pre><code>&lt;span class=love&gt;&lt;p&gt;miracle&lt;/p&gt;...&lt;/span&gt;
  </code></pre>
  
  <p>and maybe some other HTML tags. At the same time, the other tags and the contents in them will be reserved.</p>
  
  <p>The result should be like this:</p>
  
  <pre><code>&lt;p&gt;&lt;/p&gt;&lt;br&gt;love&lt;/br&gt;
  </code></pre>
  
  <p>I want to know how to do this using regex pattern?
  what I have tried :</p>
  
  <pre><code>r=re.compile(r'&lt;span class=love&gt;.*?(?=&lt;/span&gt;)')
  r.sub('',s)
  </code></pre>
  
  <p>but it will leave the</p>
  
  <pre><code>&lt;/span&gt;
  </code></pre>
  
  <p>can you help me using re module this time?and i will learn html parser next</p>