#!/bin/bash
s='<html><body>You are being <a href="https://g...content-available-to-author-only...b.com/mozilla/geckodriver/releases/tag/v0.26.0">redirected</a>.</body></html>'
sed -n 's~.*/tag/\([^"]*\).*~\1~p' <<< "$s"