jquery loop and compare values
<p>Is it possible to use jqueries each loop in this form to dissolve hyperlinks?</p>

<pre><code> $(document).ready(function() {
    var toExclude =['http://www.google.com', 'http://example'];
    $.each(toExclude, function(key, value) {

    $("a[href='+value+']").replaceWith(function(){
        var matches = value.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);
        var domain = matches &amp;&amp; matches[1];
        return domain;
                });
            });
        });
</code></pre>
