I've been trying to extract the bold portion from the following:
<a href="/torrent/4384536/HorribleSubs-Black-Clover-128-720p-mkv/">[HorribleSubs] Black Clover - 128 [720p].mkv</a>
But for whatever reason, this sed expression-
sed --regexp-extended 's#<a href="(/torrent/.+)/">.*</a>#\1#'
-is returning the entire file, when of course, I only want the \1 capture group to be.
The weird thing, is that this expression worked just fine when I tried debugging it with desed; with the capture group and primary match showing up just fine.
I'm using gnu sed 4.8-1