Once upon a time, I read somewhere in a book (whose name escapes me) that to PROPERLY validate an email address, the regex was somewhere in the neighborhood of 200 lines of code. (It probably has something to do with all the country domains.) That number has probably gone up since then.
I passed that bit of trivia to a fellow coder, but realized I couldn't source it.
It's probably locked away in a Perl function somewhere, but I don't know Perl nor the Perl community. (Or that could be a red herring).
In any case, does anyone here have any recollection to that effect and where I could source it?
DeanMSands3
69
Junior Poster
Recommended Answers
All 3 Replies
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
jwenting
1,889
duckman
Team Colleague
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
DeanMSands3
commented:
That's the one. Thanks!
+0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.