3 ms·
This is where the linked regex fails at.
by addandsubtract 3y ago
This is where the linked regex fails at.
- ceejayoz 3y agoOr correctly handles, for most of the use cases you’d want it for. If you’re building a web app, foo@gmailcom is almost certainly a mistake.
- bazoom42 3y agoOf course, since there isn’t a top level domain called gmailcom. But a regex cant tell you that.
- ceejayoz 3y agoGmail doesn't need to support "you own an entire TLD and use its root for email" use cases, so you can at least check for a dot after the @ and catch a bunch of typos that leave frustrated users.