I have this regex
(?:\\]*?)>
The point of this regex is to capture every closing ta
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.