I have some HTML like this:
- Item 1
- Item 2
- Item 3

And I would like to remove the tags from after the tags and the tags using regex though I'm not sure how to go about this. The HTML does not remain the same, so the image and lists may be in a different location or there may be other content though there will always be a after a and
What regex could I use to solve this with python? Thanks.
Edit:
I tried using this ( for the image but it did not work.
I don't want to just simply remove ALL of the tags because there may be some useful ones in the HTML, rather I would like to have the ones after the list items and images removed.