JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">
Mouse over the links to see the new href<br>
<a href="http://www.google.com?gsec=account">google</a>
<a href="https://www.google.com?gsec=account">google</a>
<a href="http://google.com?gsec=account">google</a>
JavaScript
$('a[href*="google.com"]').attr('href', function(i,href) {
return href.replace(/^http(s*):\/\/(www\.)*google.com/, 'http$1://accounts.google.com');
});
$('a').mouseenter(function() {
$('body').append('<br>' + this.href);
});