Python string operation, extract text between html tags

后端 未结 6 1623
无人及你
无人及你 2020-12-03 12:48

I have a string:

  
JUL 28         

(it outputs over two lines, so there must

6条回答
  •  暖寄归人
    2020-12-03 13:15

    Is grep an option?

    grep "<[^>]*>(.*)<\/[^>]*>" file
    

    The (.*) should match your content.

提交回复
热议问题