From: claird@... (Cameron Laird) Date: 2001-03-18T02:10:02+09:00 Subject: [ruby-talk:12779] Re: email address regexp In article , Randal L. Schwartz wrote: . . . >The Perl regex to match an email address (or at least >a useful subset of them) can be found many places, >including > > http://www.foad.org/~abigail/Perl/url3.regex > >which I include here to show that it's not a simple regex: . [109 lines of apparent line- noise] . . There are several positive results to emphasize here: 1. Regexps are great for some things, impossible for others, and ... clumsy for still others. e-mail addresses nicely demonstrate that the third category is non-empty. 2. There *is* a standard for e-mail addresses. 3. It's FAR easier to validate e-mail addresses correctly using mechanisms other than REs. Presumably the Ruby community would welcome contribution of a correct parseaddress method, and perhaps even incor- porate it in larger MIME and e-mail packages. -- Cameron Laird Business: http://www.Phaseit.net Personal: http://starbase.neosoft.com/~claird/home.html