title: Java Regular Expression to Remove tags from html
body: <pre><code>&lt;table&gt;&lt;tr&gt;&lt;td&gt;HEADER&lt;/td&gt;&lt;td&gt;Header Value &lt;supporting value&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;SUB&lt;/td&gt;&lt;td&gt;sub value. write to &lt;test@gmail.com&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;START DATE&lt;/td&gt;&lt;td&gt;11/23/ 2016&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;END DATE&lt;/td&gt;&lt;td&gt;11/23/2016&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  </code></pre>
  
  <p>The above text is my html String, need to extract values for HEADER, SUB,START DATE and END DATE. I used Jsoup to extract the values but I have issues with non-html element tags. The API either skips these elements OR adds an ending tag which was not there in the first place.</p>
  
  <p>So my idea is to replace non-html element tags with <code>&amp;lt;</code> and then use Jsooup to extract the values</p>
  
  <p>Any suggestions??</p>