> > header __TO_DOMAIN_NET ToCc =~ /[EMAIL PROTECTED]/i > > > > But the above rule would match "@domain.net" as well as > > "@domain.net.in" > > You have not tried it, have you? The \b assures that it will not match > on @domain.net.in.
Well, no, it will. The dot is a wordbreak, and \b is only looking for a break. So it would match. There are several ways to go. A fairly trivial one that doesn't use a lookahead might be header __TO_DOMAIN_NET ToCc =~ /[EMAIL PROTECTED]/i Loren