<cfset variables.domainlen = Len(ReReplaceNocase(attributes.email, "([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})", "\2")) - 1> <cfset variables.mask = ""> <cfloop from="1" to="#variables.domainlen#" index="i"> <cfset variables.mask = variables.mask & "*"> </cfloop> <cfset variables.email = ReReplaceNocase(attributes.email, "([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})", "[EMAIL PROTECTED]")/>
Kind of a hack Im sure it can be done better but this works. Im still learning :) -- ~Eric ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270312 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4