Mar-20-2023, 01:12 PM
I am trying to edit some HTML text in Python. I have an HTML file where there are sometimes a <b> tag (Bold) and before it is closed with a </b> there is another <b>, eg:
<RF><b>1:4 <b>Hom wat is ... kom:</b>
he second <b> should not be there.
Is it possible to write a regex pattern to find such occurrences and to delete the spurious <b>?
<RF><b>1:4 <b>Hom wat is ... kom:</b>
he second <b> should not be there.
Is it possible to write a regex pattern to find such occurrences and to delete the spurious <b>?