[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Code/logic collection question
- Subject: [ale] Code/logic collection question
- From: oloryn at benshome.net (Ben Coleman)
- Date: Mon, 23 Apr 2001 19:22:49 -0400
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.