Date: Mon, 06 Sep 2010 10:48:53 -0700 From: Drew Tomlinson <drew@mykitchentable.net> To: Glen Barber <glen.j.barber@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Regex Help For Procmail Message-ID: <4C852985.90606@mykitchentable.net> In-Reply-To: <4C840C59.6050704@gmail.com> References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <4C840C59.6050704@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/5/2010 2:32 PM, Glen Barber wrote: > On 9/5/10 12:33 PM, Drew Tomlinson wrote: >> No, still not matching. Basically, why doesn't this header: >> >> From: "Famous Smoke Shop"<Announce@email.famous-smoke.com> >> >> Match this procmail recipe: >> >> :0 >> * ^From:.*famous-smoke.com>$ > Hmm.. I just noticed this - I don't think you need the trailing bracket (>). > > What about this: > > * ^From:.*famous-smoke\.com$ > > Note that I also escaped the period before 'com'. I think I'd have to have the trailing bracket when specifying the "$" at the end. However maybe the bracket is some special regex character and needs to be escaped? I'm just going to remove the bracket and the $ and see what happens. However I *would* like to understand. Thanks for your help! Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C852985.90606>