From owner-freebsd-questions@FreeBSD.ORG Mon Sep 6 03:37:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35BC210656BB for ; Mon, 6 Sep 2010 03:37:36 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 10D788FC0C for ; Mon, 6 Sep 2010 03:37:36 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o863bYOI046781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 5 Sep 2010 20:37:34 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o863bXBB046778; Sun, 5 Sep 2010 20:37:33 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA25699; Sun, 5 Sep 10 16:02:07 PDT Date: Sun, 05 Sep 2010 16:02:07 -0700 From: perryh@pluto.rain.com To: frank@shute.org.uk Message-Id: <4c84216f.w2295Zjs25+GOe/F%perryh@pluto.rain.com> References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <20100905205910.GA82375@orange.esperance-linux.co.uk> In-Reply-To: <20100905205910.GA82375@orange.esperance-linux.co.uk> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: drew@mykitchentable.net, freebsd-questions@freebsd.org Subject: Re: Regex Help For Procmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 03:37:36 -0000 Frank Shute wrote: > Drew, try this: > > * ^From:.*famous-smoke\.com > > I think it's not catching it because the period isn't backslash > escaped ... Unless there's some edge case that I'm not thinking of, adding a backslash to escape a period will never convert a non-match into a match. An unescaped period in an RE matches any character, including a period. An escaped period matches only a period. Adding the backslash _does_ better represent what the OP wants to accomplish, but the lack of it is not the cause of the RE not matching. (I'm not sufficiently familiar with how procmail uses REs to figure out what _is_ causing it not to match.)