JSFiddle - React, Tailwind, and code Playground
HTML
<body>
test <a href="/loc">Обновить</a> - <a href="/locback">Назад</a><hr/>text <a href="log">values</a> (+++) <a href="/next">next</a><br/>text <a href="log">values</a> <b>1</b> (+++) <a href="/next">next</a><br/>
</body>
JavaScript
re=/(\<a href=.log(?!\<a ).*?)(<b>1<\/b>)/i;
console.log(re.exec(document.getElementsByTagName("body")[0].innerHTML));