I'm trying to find the regex to replace a block of changing HTML code between two HTML tags:
For example, I want to replace this entire table with a link to an iframe:
<h2>Older Blog Links</h2>
<h3>2020</h3>
<table style="width:100%">
<tr>
<td><a href="/media/blog/2020/01/25/20200125.html">Saturday Jan 25</a></td>
<td><a href="/media/blog/2020/01/19/20200119.html">Sunday Jan 19</a></td>
<td><a href="/media/blog/2020/01/17/20200117.html">Friday Jan 17</a></td>
<td><a href="/media/blog/2020/01/15/20200115.html">Wednesday Jan 15</a></td>
</tr>
</table>
replace with
<h2>Older Blog Entries</h2>
<iframe src="/oldbloglinks.html" width="100%" frameborder="0" onload="resizeIframe(this)"
style="border: none;"></iframe>
The links in the "find" section above change, so I want to be able to globally replace anything between the <h2>
opening tag and the </table>
tag