Tools based on regular expressions are not a good fit for handling html. I would suggest using something like beautiful soup to parse the html and then have a look at the formatting options to see of you can output it in the format you want.
Tools based on regular expressions are not a good fit for handling html. I would suggest using something like beautiful soup to parse the html and then have a look at the formatting options to see of you can output it in the format you want.