Add mailto link to static email with JQuery
<p>I'm trying to add a mailto link to static email addresses found within a list of results from a database, using JQuery. I was able to find the following excerpt online which works for the first result, but it does not work for any email addresses after the first one.</p>

<p>I'm curious why this is.. and how I can get it to apply the mailto: attribute to every email address found in the results. :-)</p>

<p>Current code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
    var regEx = /(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)/;
    $("table td").filter(function() {
        return $(this).html().match(regEx);
    }).each(function() {
        $(this).html($(this).html().replace(regEx, "&lt;a href=\"mailto:$1\"&gt;$1&lt;/a&gt;"));
    });
});
</code></pre>

<p></p>

<p>Thanks!</p>
