From: Luigi Ballabio Date: 2001-03-15T17:47:14+09:00 Subject: [ruby-talk:12675] Re: email address regexp 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. Bye, Luigi