News for hackers. Stuff that matters.
Re:Ruby's Email Address Regexp by DeepYogurt on Tuesday January 04, 2022 @09:58PM (#29804464)
What about @@.@?
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.

Re:Ruby's Email Address Regexp by duxup on Tuesday January 04, 2022 @10:01PM (#29804487)
People who have weird email addresses are used to them not working.
Re:Ruby's Email Address Regexp by woranl on Tuesday January 04, 2022 @09:59PM (#29804474)
There is nothing before the first @, and nothing after the last @.
Re:Ruby's Email Address Regexp by ojame on Tuesday January 04, 2022 @10:03PM (#29804503)
While that's true, `@@.@` fulfils "an @ symbol with something before it, and something after it".
Re:Ruby's Email Address Regexp by Skadabucci on Tuesday January 04, 2022 @10:09PM (#29804546)
The original comment probably meant something like this: ^[^@]@[^@]$
Re:Ruby's Email Address Regexp by mekster on Wednesday January 05, 2022 @01:44AM (#29805933)
That's only one letter before and after.