From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81230 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy-Split / Regexp question Date: Mon, 06 Feb 2012 16:29:52 +0100 Message-ID: References: <877h00vytj.fsf@tsdh.uni-koblenz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328542234 11425 80.91.229.3 (6 Feb 2012 15:30:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 15:30:34 +0000 (UTC) Cc: michael.zombok@googlemail.com, ding@gnus.org To: Tassilo Horn Original-X-From: ding-owner+M29511@lists.math.uh.edu Mon Feb 06 16:30:31 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuQWV-0004yS-4V for ding-account@gmane.org; Mon, 06 Feb 2012 16:30:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RuQW4-0006MS-HC; Mon, 06 Feb 2012 09:30:04 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RuQW1-0006MG-UZ for ding@lists.math.uh.edu; Mon, 06 Feb 2012 09:30:01 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RuQVw-0001o3-0P for ding@lists.math.uh.edu; Mon, 06 Feb 2012 09:30:01 -0600 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RuQVu-00042F-0o for ding@gnus.org; Mon, 06 Feb 2012 16:29:54 +0100 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 7608618001A4; Mon, 6 Feb 2012 16:29:53 +0100 (CET) X-Auth-Info: xLTxTGLcZP3VnLVQSL5moeWjgG5svDzrU9iv+GB8Jh8= Original-Received: from igel.home (ppp-93-104-129-172.dynamic.mnet-online.de [93.104.129.172]) by mail.mnet-online.de (Postfix) with ESMTPA id 7D2C61C00285; Mon, 6 Feb 2012 16:29:53 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id E79C5CA29F; Mon, 6 Feb 2012 16:29:52 +0100 (CET) X-Yow: Didn't I buy a 1951 Packard from you last March in Cairo? In-Reply-To: <877h00vytj.fsf@tsdh.uni-koblenz.de> (Tassilo Horn's message of "Mon, 06 Feb 2012 15:08:56 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81230 Archived-At: Tassilo Horn writes: > michael.zombok@googlemail.com writes: > > Hi Michael, > >> I am trying hard to setup a fancy-splitting-rule for a mailing list. >> The 'tag' in the subject header of the mails I want to catch is >> '[ab-cd-ef]' (including the braces) but I don't get it. I tried >> various versions without success. What is the correct syntax? >> >> (any ".*\\[ab-cd-ef\\].*" "news.ab-cd-ef") > > Syntactically, this regex is correct, i.e., it matches only the string > containing "[ab-cd-ef]". You can omit the two ".*", though. No, you cannot omit ".*", because fancy splitting matches on word boundaries, and [ ] aren't word characters. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."