Is regular expression recognition of an email address hard?

For the formal e-mail spec, yes, it is technically impossible via Regex due to the recursion of things like comments (especially if you don’t remove comments to whitespace first), and the various different formats (an e-mail address isn’t always [email protected]). You can get close (with some massive and incomprehensible Regex patterns), but a far better … Read more