@Michael Your script is poorly maintained, consider using revision control.
]]>eg: http://www.hm2k.com/posts/what-is-a-valid-email-address#comment-196432
I’ll check it out.
]]>(It also explains the development of the regular expression and provides a class to make it easy to manipulate and use).
]]>If you do, I’ll consider adding it into production testing.
]]>Allows a dot-atom (full character range) local part, quoted-string local part, obsolete local part (mixture of (dot) atoms and quoted strings), domain names, internationalized labels, domain literals (IPv4 and IPv6), folding white spaces and nested comments. 1,394 characters. Very long, but much shorter than other expressions which seek to completely verify an email address (Perl’s infamous example). Although, the fact that it’s long is irrelevant: my intention was to simply show that it can be done.
I hope this is helpful.
(Note: I’m hoping HTML tags work in comments — if not, please remove “pre” tags. Thanks).
]]>1. I purposely chose to link to what I’m using, instead of websites subject to change. However I will update the copy of your script.
2. I’m aware of RFC 5322. No further updates will be added to the post itself, however I may re-address the topic in a new post at a later date.
Thanks for the feedback.
@Michael
That statement was written about the same time as RFC 5322 was published so I dare say that things have changed in that time. All that aside, you should provide evidence to support such radical statements otherwise you’re helping nobody.
]]>