I have a string, say
s1 = '<h3><a id="_a50ezru0fkt"></a>Overview</h3><p>is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text</p><h3><a id="_a50ezpu0fgr"></a><p>is simply dummy text of the pr</p>'
I need to remove all the empty <a>
tag from s1
There can be several such empty <a>
tag in the string where id
can take any value.
So that final result is:
s1 = '<h3>Overview</h3><p>is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text</p><h3><p>is simply dummy text of the pr</p>'
I would like to achieve this using regular expression, please.