2 ms·
> @"^[^@]{1,}[@]{1}[^@]{1,}\.{1}[^@]{1,}$" Is not > [string]@[string].[string] It's mere ^.+@.+\..+ (in both POSIX extended and PCRE dialects) that properly
by drdaeman 13y ago
> @"^[^@]{1,}[@]{1}[^@]{1,}\.{1}[^@]{1,}$"
Is not
> [string]@[string].[string]
It's mere ^.+@.+\..+ (in both POSIX extended and PCRE dialects) that properly represents the latter.
And even such regexp filters out many technically-valid but obscure cases of RFC-compliant email addresses (for example ai, io, kh and ws TLDs have MX records, and supposedly hostmaster@io should be a valid email address).