JSFiddle - React, Tailwind, and code Playground
by fenderistic
HTML
<a href="http://www.goto.com">www.goto.com</a>
<a href="http://www.foto.com">www.foto.com</a>
<a href="http://www.abc.com">www.abc.com</a>
<a href="http://www.xyz.com">www.xyz.com</a>
<a href="http://www.mymy.com">www.mymy.com</a>
<a href="http://www.youryour.com">www.youryour.com</a>
<a href="http://www.penny.com">www.penny.com</a>
<a href="http://www.jack.com">www.jack.com</a>
<a href="http://www.kurt.com">www.kurt.com</a>
<a href="http://www.loop.com">www.loop.com</a>
CSS
.highlite {
color: yellow;
}
JavaScript
$('a').each(function() {
// I want to eleminate www.goto.com, www.foto.com
// and 10 more links
if(this.href.match(/(xyz|goto|foto|mymy|abc)/g)){
this.remove();
} else { $(this).addClass("highlite"); }
//return this.href.match(/(goto|foto|anyotherstring)/g);
});
//add