title: Extract HTML tag data with sed
body: <p>I wish to extract data between known HTML tags. For example:</p>
  
  <pre class="lang-none prettyprint-override"><code>Hello, &lt;i&gt;I&lt;i&gt; am &lt;i&gt;very&lt;/i&gt; glad to meet you.
  </code></pre>
  
  <p>Should become:</p>
  
  <pre class="lang-none prettyprint-override"><code>'I
  
  very'
  </code></pre>
  
  <p>So I have found something that works to <i>nearly</i> do this. Unfortunately, it only extracts the last entry.</p>
  
  <pre class="lang-bash prettyprint-override"><code>sed -n -e 's/.*&lt;i&gt;\(.*\)&lt;\/i&gt;.*/\1/p'
  </code></pre>
  
  <p>Now I can append any end tag <code>&lt;/i&gt;</code> with a newline character and this works fine. But is there a way to do it with just one sed command?</p>