Regex non-capturing group is capturing

前端 未结 5 1118
礼貌的吻别
礼貌的吻别 2021-01-24 11:35

I have this regex

(?:\\]*?)>

The point of this regex is to capture every closing ta

5条回答
  •  后悔当初
    2021-01-24 12:26

    If I'm understanding correctly that you want to match just the greater-than sign (>) that's part of the closing anchor tag, this should do it:

    \]*?(>)
    

提交回复
热议问题