Forum Moderators: phranque

Message Too Old, No Replies

Regex for Email obfuscation

Many pages to change.

         

bsmither

6:08 am on Jun 17, 2005 (gmt 0)

10+ Year Member



I've looked around at a few places looking for a way to obfuscate e-mail addresses. I found a lot of pages describing several methods. But this isn't the solution I'm looking for.

I have A LOT of pages already constructed, many with e-mail addresses. I need a slick way to change these existing addresses into the "broken" versions so that a javascript can later restore them.

I use UltraEdit which has a search/replace with regex capability. So what I need is a regex string that can take a standard e-mail address and convert it to a respective "broken" text string for the corresponding Javascript code.

Any help is much appreciated.

Ozark

10:07 am on Jun 17, 2005 (gmt 0)

10+ Year Member



<script LANGUAGE="JavaScript"><!-- BEGIN Script
var cry1=String.fromCharCode(109,97,105,108,116,111,58);document.write("<a href=\"");document.write(cry1);document.write("YOURNAME");document.write(String.fromCharCode(64));
document.write("YOURDOMAIN.com");
document.write("\">");
document.write("YOURNAME");document.write(String.fromCharCode(64));
document.write("YOURDOMAIN.com");
document.write("</a>");
//END --></script>

Ozark