> At 02:46 AM 3/15/01 +0900, you wrote:
> >On Thu, Mar 15, 2001 at 02:20:14AM +0900, David Fung wrote:
> > > i would like to locate probable email addresses in a bunch of text
files,
> > > but don't know how to build a regexp for the search.  glad if
somebody can
> > > help.
> >
> >/\w+@\w+(\.\w+)+/
> 
> Hmm. It matches "ballabio / mac.com" and "ballabio / tsl.uu.se", but crops 
> "luigi.ballabio / riskmap.net" to "ballabio / riskmap.net". I think
> 
> /\w+(\.\w+)*@\w+(\.\w+)+/
> 
> could be a more correct one.
> 

  /\w+(\.\w+)*@\w+(\.\w+)*/

Referring to ruby-talk 12633, this is probably more correct. I think
it matches with the specification I found at http://www.rfc822.com 
but I could be wrong.


Regards,
Paul.