RegEx to extract text between a HTML tag

前端 未结 3 1364
我寻月下人不归
我寻月下人不归 2020-12-21 01:44

I\'m looking a regular expression which must extract text between HTML tag of different types.

For ex:

Span 1 - O/p:

3条回答
  •  遥遥无期
    2020-12-21 02:07

    This should suit your needs:

    <([a-zA-Z]+).*?>(.*?)
    

    The first group contains the tag name, the second one the value inbetween.

提交回复
热议问题