title: Delphi extract string between to 2 tags
body: <p>How would I go about extracting text between 2 html tags using delphi?
  Here is an example string.</p>
  
  <pre><code>blah blah blah&lt;tag&gt;text I want to keep&lt;/tag&gt;blah blah blah
  </code></pre>
  
  <p>and I want to extract this part of it.</p>
  
  <pre><code>&lt;tag&gt;text I want to keep&lt;/tag&gt;
  </code></pre>
  
  <p>(basically removing all the blah blah blah garbage that comes before and after the <code>&lt;tag&gt;</code> &amp; <code>&lt;/tag&gt;</code> strings which I also want to keep.</p>
  
  <p>Like I said, I am sure this is extremely easy for those who know, but I just cannot wrap my head around it at the moment. Thanks in advance for your replies.</p>