procmail
[Top] [All Lists]

Re: RFC-consistent regexp to match name@(subdomain.)*foo.bar

1997-02-19 12:14:44
What is the regexp to match a set of email addresses within foo.bar like
    name@(subdomain.)*foo.bar
I'm using
    [a-z][^     ]*@([a-z][a-z0-9_-]*\.)*foo\.bar

Hi John. Maybe I don't understand what you are trying to do. What would
be wrong with ^From:.*\.foo\.bar

To further elaborate,
I want to match the email address !only!; I'll be prefixing the regexp
with "\/" and using $MATCH later.
Thank you,
John Ruckstuhl