> Le 6 oct. 2022 à 10:19, Rowan Tommins <rowan.coll...@gmail.com> a écrit : > > You described FILTER_VALIDATE_EMAIL as "notorious for being next to useless"; > that gives us two possibilities: > > a) A new function will be just as useless, because it will be based on the > same implementation > b) There is a better implementation out there, which we should start using in > ext/filter right now > > My gut feel is that (a) is true, and there is no point considering what a new > function would be called, because we don't know how to implement it.
Hi, While it may be difficult to validate an email according to some IETF’s RFC, the HTML standard has pragmatically adopted a pattern (used to validate `<input type=email>` fields) that is both readable and suitable for most practical purposes. See: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address <https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address> —Claude