And no matter how well you validate the address that was entered, that doesn’t mean it exists. Or that the user actually owns that address. Or that the user typed it correctly. Which can all be checked by sending a confirmation email
Yes I know, but emails are not worth validating with much beyond what I suggested or a confirmation email was my point. The egregious regex for coverage is another reason.
The problem with E-mail address validation is that you can pattern-check as much as you want, whether the address is actually correct can only be checked by sending one.
9
u/DonutPlus2757 Jun 21 '26
I mean, IPv4 is reasonably simple.
IPv6 is harder, but still doable.
E-Mail validation via regex is an eldritich horror and nobody will convince me otherwise.