Regex non-capturing group is capturing

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

I have this regex

(?:\\]*?)>

The point of this regex is to capture every closing ta

5条回答
  •  萌比男神i
    2021-01-24 12:23

    Your parentheses are around the tag itself and the href's contents, so that's what will be captured. If you need to capture the closing > then put the parenthesis around it.

提交回复
热议问题