Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2023 (3)
20082026
  1. 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()
  2. 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()
  3. …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
  4. 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…