Re:The Reason Java Is Still Popular
by __ryan__ on Thursday September 22, 2022 @03:29PM
(#32943563)
I don't think that's true.
In JS:
Edit: Hmm, I see what you mean. At first glance I thought it was just checking that it didn't start with @ or whitespace.
[ Parent
| on HN ]
Re:The Reason Java Is Still Popular
by papercrane on Thursday September 22, 2022 @03:34PM
(#32943616)
Sorry, I edited my comment and then noticed you replied already. It's working by accident since the '\S+' will match the second '@', but if you had a quoted space in the user it would not work e.g. john."\ "[email protected], but would work with [email protected]@invalid.example which I believe the regex is author meant to be caught as invalid.