title: PowerShell regular expression to get all the HTML tags
body: <p>I have a string with HTML tags. I have to write PowerShell script to split this string using regular expression for HTML tags both opening and closing. I have tried many times but with no luck.
  &lt;([A-Z][A-Z0-9]<em>)[^>]</em>>
  I have tried this for opening tags. But it only removes the '&lt;' and '>' from string not the whole tag.
  My string is something like this:</p>
  
  <pre><code>    &lt;Div id="div1"&gt;
  &lt;Div&gt;
  some text inside.
  &lt;/Div&gt;
  &lt;font&gt;this is text inside font.
  &lt;/font&gt;
  &lt;h1&gt;this is h1 text.
  &lt;/h1&gt;
  &lt;p&gt;
  This is a new paragraph.
  &lt;/p&gt;
  &lt;/Div&gt;
  </code></pre>
  
  <p>My desired output is: some text inside. This is text inside font. this is h1 text. This is a new paragraph.</p>