[ale] Code/logic collection question

Ben Coleman oloryn at benshome.net
Mon Apr 23 19:22:49 EDT 2001


4/23/2001 6:56:44 PM, Thompson Freeman <tfreeman at intel.digichem.net> wrote:

>BTW - what is the regular expression for a valid email address?

Actually, a fully-rfc822-compliant regex to validate email address format turns out to be humongous (see Appendix B of 'Mastering Regular 
Expressions' for an example).  If you've got a string that you want to validate is a correctly-formed email address, you're better off using the 
RFC::RFC822::Address module.  This may not (or may, depending on how you do the search) help you find email addresses within random 
text.

Ben

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list