News for hackers. Stuff that matters.
Re:Ruby's Email Address Regexp by secabeen on Wednesday January 05, 2022 @02:50PM (#29813988)
Interesting question. RFC1123 states that TLDs should be alphabetic, and that the first (or only) character must be a letter or a digit, which should exclude a TLD of '@'. local-parts can include most printable characters other than ()<>[];:@\,.

/^+@+$/ is easy and the false positives it allows are weird enough to accept.

There are no comments on this comment yet.