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