Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: regex to validate e-mail addresses and phone numbers

by ChrisR (Hermit)
on Feb 10, 2004 at 14:33 UTC ( [id://327930]=note: print w/replies, xml ) Need Help??


in reply to regex to validate e-mail addresses and phone numbers

While the use of a proven module is a great idea, I do believe in re-inventing the wheel at times. This way you can gain a greater understanding of what's really going on. RFC 822 will give you a complete description of what is a valid email address. Keep in mind that all valid email addresses may not be deliverable and some invalid addresses can be deliverable. I guess the most important thing is to know what you are actually validating. The Perl Cookbook has some good information in chapters 6 and 18 regarding the validation of email addresses. Or, just use a module if you want a quick fix.
  • Comment on Re: regex to validate e-mail addresses and phone numbers

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://327930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2025-07-13 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.