title: How to remove named HTML Tags and Contents from a String?
body: <p>I've tried to understand a few examples, including questions here so I apologise if this seems to me a duplicate but I cannot find a RegularExpression I can understand.<br>
  I have some HTML to parse using an XML parser - but I want to strip out the &lt;head&gt; &lt;/head&gt; tags from this content as the rest is valid enough for normal XML Parsing.
  The tags &lt;head&gt; to &lt;/head&gt; must be removed and their content so that the outer HTML is not affected &lt;body&gt; tags etc.<br>
  This is the section including the Head HTML I want removed for reference:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="/style/stylesheet.css" /&gt;
      &lt;meta name="description" content="Information" /&gt;
      &lt;base target="_top"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;!-- Body Here --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I also need to strip the DocType, if this can be done using a RegEx then that would be great. The head is always the same - I want to remove from &lt;head&gt; to &lt;/head&gt; inclusive only and if possible remove the DOCTYPE from the Text also.  </p>
  
  <p>Also this will need to work in Silverlight and use System.Text.RegularExpressions or similar to work.</p>