Re:There is a regex for valid emails, but no one has written it
by OreganoTrail on Thursday May 23, 2024 @10:57AM
(#40455534)
If I understand this correctly ... valid emails aren't a regular language, but there is a regex for them because regexes can match nested parentheses, but no one has ever made written down or generated this regex because it's too much work. So everyone uses good-enough regexes instead. (Reasonable.)
Re:There is a regex for valid emails, but no one has written it
by OreganoTrail on Friday May 24, 2024 @03:57PM
(#40469933)
It says right there: "The regular expression does not cope with comments in email addresses. ... The Perl module pre-processes email addresses to remove comments before applying the mail regular expression."
Check this out: https://pdw.ex-parrot.com/Mail-RFC822-Address.html