I've got an XML file that includes email addresses as part of each record. I'd like to obscure the email addresses (for privacy), but also keep their "uniqeness" to allow combining of records (purchases in this case) if there is more than one from the same email address.
Figured there might be a way using regex to replace the characters before and after the "@" with * or similar. Figuring that 3 or 4 characters before and after preserves the privacy and (for the most part) keeps the "uniqueness".
Suggestions on the best way to do this (including some completely different options than what I'm thinking)?
Thanks.