RegEx matching HTML tags and extracting text

后端 未结 5 1443
生来不讨喜
生来不讨喜 2020-12-17 01:45

I have a string of test like this:

hey

I want to use a RegEx to modify the text between the \"customtag\

5条回答
  •  Happy的楠姐
    2020-12-17 01:49

    If there won't be any other tags between the two tags, this regex is a little safer, and more efficient:

    [^<>]*
    

提交回复
热议问题