JSFiddle - React, Tailwind, and code Playground
HTML
<a href="something.com">Yamaha 800cc motorbike</a>
<a href="something.com">800cc Kawasaki</a>
<a href="something.com">Motorbike 1000cc Honda</a>
<a href="something.com">YAMAHA 800cc motorbike</a>
<a href="something.com">yamaha 1000cc motorbike</a>
JavaScript
$('a').each(function(_, elem) {
var $elem = $(elem);
if( !/yamaha/i.test( $elem.text() ) )
$elem.hide();
});