>>>>> "OBSD" == OBSD <[EMAIL PROTECTED]> writes:
OBSD> I wants to egrep from a big text file all mail addresses. ... OBSD> cat mail.txt | egrep "[EMAIL PROTECTED],4}" That's not even VAGUELY CLOSE to a regex for email addresses. You need to read RFC822 and RFC2822, or just grab the regex at: <http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html>. And no, I'm not kidding. (It's easier to use the Perl module, which creates that regex on the fly.) You're in good company though. Nearly *everyone* gets this wrong until being properly informed. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!