Regex to delete HTML within <table> tags
- by johnv
I have an HTML document in .txt format containing multiple tables and other texts and I am trying to delete any HTML (anything within "<") if it's inside a table (between and ). For example:
===================
other text
<other HTML>
<table>
<b><u><i>bold underlined italic text</b></u></i>
</table>
other text
<other HTML>
==============
The final output would be as the following. Note that only HTML within and are removed.
==============
other text
<other HTML>
<table>
bold underlined italic text
</table>
other text
<other HTML>
=============
Any help is greatly appreciated!