title: Remove everything from specific HTML string to specific string using sed
body: <p>I have a html file with this in it:</p>
  
  <pre><code>&lt;div id="date"&gt;Saturday 04.08.18&lt;br&gt;&lt;div id="time"&gt;23&lt;img src="media/images/sec.gif"&gt;59&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and i want to delete this complete element out of the html file but the values are changing each minute (because it is the time)</p>
  
  <p>i had tried this command edited from another guy here but it is not working.</p>
  
  <pre><code>sed -z -r -i 's#&lt;div id="date"&gt;[^&lt;]*&lt;/div&gt;&lt;/div&gt;\n?##g' 1.htm
  </code></pre>
  
  <p>i think this may not work because there starts another html element in the element?</p>