3 ms·
I would like to point out that the "suggested" validation pattern, ^[^@]+@[^@\s]+$, can filter out valid addresses. "user@something"@example.com is a valid addr
by miningtcup 4mo ago
I would like to point out that the "suggested" validation pattern, ^[^@]+@[^@\s]+$, can filter out valid addresses. "user@something"@example.com is a valid address, and excluding @'s in the user part rejects it.
- zenoprax 4mo ago> "user@something"@example.com is a valid address I appreciate your commitment to correctness but like [XKCD 1172](https://xkcd.com/1172/ https://xkcd.com/1172/) ... the user is clearly in the wrong at this point.
- account42 4mo agoIt's OK to reject technically valid emails that will only be used by RFC nerds trying to prove a point.