News for hackers. Stuff that matters.
Re:Email Regex that works 99.99% by ricardobeat on Sunday February 22, 2015 @09:10AM (#9089464)
These have wildly different behaviour. The .NET and Javascript ones are even exchangeable (both are valid js). They will also not match internationalized domain names unless converted to punycode before validation.

IMO you either implement the RFC, or use the absolute dumbest validation possible: 1) there is one '@' character present 2) there is at least one dot on the right side. Anything else will exclude some valid addresses, and you're unlikely to ever hear feedback/complaints from someone who had their sign-up email rejected.

There are no comments on this comment yet.