[UA-discuss] Regular Expression To Validate EAI Addresses

John Levine john.levine at standcore.com
Fri Aug 14 16:10:39 UTC 2020


In article <aabfc6a29ba14bdf82a2197a3c211e92 at ntra-mbx1.TRA.GOV.EG> you write:

>Regex "^[\p{L}.%+-]+@[\p{L}.-]+\.[\p{L}]{2,}$" to validate some EAI addresses and it works well like the below screenshot.

I would take the % out of the local part.  While it is techically allowed, historically
it has been used to do source routing and been widely abused, so that most mail systems
reject addresses with % as a security risk.

-- 
Regards,
John Levine, johnl at taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly


More information about the UA-discuss mailing list