JSFiddle - React, Tailwind, and code Playground
by jelane20
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="link"><a href="http://test/site/TR/ooo/General-ooo?team_id=3912&pg=team&event_id=1014">The Wolves</a>
<span></span>
</div>
<div class="link"><a href="http://test/site/TR/ooo/General-ooo?team_id=3916&pg=team&event_id=1060">The Tigers</a>
<span></span>
</div>
JavaScript
$("div.link a").each(function() {
let $this = $(this),
url = $this.attr("href").match(/team_id=(\d+)/);
$this.next("span").text(url[1]);
});