On Fri, February 22, 2019 17:41, Malik Costet wrote:
On 2019-02-22 17:27, Thomas Brand wrote:
<snip />
Mail addresses are obfuscated with the pattern
Full Name <_hidden_(a)domain-untouched.tld>
<snip/>
Not a fan. It still looks like an e-mail address.
I'd personally find something like "[hidden] at domain-untouched dot
tld" more aesthetically pleasing.
Commendable initiative, otherwise.
Thanks,
yes it could also replace the @ and dots.
This is the new regex:
$ echo "jon.doe(a)here.aaa.bb" | sed -r
's/\b[A-Za-z0-9._%+-]+(a)([A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b)/\[hidden\] at
\1/g' | sed 's/\./ dot /g'
[hidden] at here dot aaa dot bb