Re:How we discovered a database leak in one of the biggest S...
by Xylakant on Wednesday March 07, 2018 @02:49AM
(#16534929)
Your “has TLD” test is already wrong: localpart@tld (example@de) is an odd, but valid address.
Re:How we discovered a database leak in one of the biggest S...
by dredmorbius on Tuesday March 06, 2018 @08:06PM
(#16533569)
A (very simple) regex text might exclude some randomly-entered garbage or inadvertantly invalid address. Even then, the scope and reliability of such tests is minuscule.
If you're going to test for at least 3 characters with a @ in the middle, you probably should implement some other simple rules to have a snowball's chance on the internet:
only one @
no spaces
has TLD (guarantee at least one period after @, and something else after, no consecutive periods)
can't begin or end with a period