dominicsayers/isemail
View on GitHub ↗ ★ 309 PHP
Checks an email address against the following RFCs: 3696, 1123, 4291, 5321, 5322
5 mentions on Hacker News by 4 people: 1 story, 4 comments · first 2012-11-16 · latest 2023-02-23
20082026
-
The code itself is very helpful and interesting, https://github.com/dominicsayers/isemail/blob/master/is_emai... . Point is that checking whether something is a valid email or not is 1179 lines long (I know there are a lot of comments).…
comment by hn_throwaway_99 · 2023-02-23 · in Is_email() -
FWIW the linked library does that, https://github.com/dominicsayers/isemail/blob/master/is_emai...
comment by hn_throwaway_99 · 2023-02-23 · in Is_email() -
▲ 29
Is_email()story by corentin88 · 2023-02-22 · 54 comments
-
…feedback as to what is wrong in order to decide how to deal with it (or not). Here's one example: https://github.com/dominicsayers/isemail The regex's floating around out there are horrible. Validating email addresses doesn't necessarily…
comment by robomartin · 2013-10-14 · in How not to validate email addresses -
Note that the source for that is_email test (I hadn't seen the library before) is here: https://github.com/dominicsayers/isemail That library is very good for telling you exactly what's wrong with an email address, but looking through the…
comment by xyzzy123 · 2012-11-16 · in Regexp-based RFC822 email address validation