How to remove tags from a string in python using regular expressions? (NOT in HTML)

前端 未结 6 1150
终归单人心
终归单人心 2020-12-07 23:22

I need to remove tags from a string in python.

Title

What is the most effici

6条回答
  •  广开言路
    2020-12-08 00:23

    Use an XML parser, such as ElementTree. Regular expressions are not the right tool for this job.

提交回复
热议问题