jQuery
Static email addresses to links
This is how to use jQuery to automatically convert all email addesses from static text into a mailto link. In this example we are looking for all emails in the .email_list class. Usage: var regEx = /(\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)/; $(“.email_list”).filter(function() { return $(this).html().match(regEx); }).each(function() { $(this).html($(this).html().replace(regEx, “<a href=\”mailto:$1\”>$1</a>”)); });