From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81245 Path: news.gmane.org!not-for-mail From: Basil Abou El-Komboz Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy-Split / Regexp question Date: Tue, 07 Feb 2012 07:20:58 +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 1328595782 2109 80.91.229.3 (7 Feb 2012 06:23:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 06:23:02 +0000 (UTC) Cc: Tassilo Horn , ding@gnus.org To: Andreas Schwab Original-X-From: ding-owner+M29526@lists.math.uh.edu Tue Feb 07 07:23:00 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 1RueSA-0003ZO-TB for ding-account@gmane.org; Tue, 07 Feb 2012 07:22:59 +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 1RueS3-0002Cl-72; Tue, 07 Feb 2012 00:22:51 -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 1RueS2-0002Ca-4M for ding@lists.math.uh.edu; Tue, 07 Feb 2012 00:22:50 -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 1RueS0-0005Kx-Jb for ding@lists.math.uh.edu; Tue, 07 Feb 2012 00:22:49 -0600 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RueRy-0001On-OX for ding@gnus.org; Tue, 07 Feb 2012 07:22:46 +0100 Original-Received: by eaaq13 with SMTP id q13so1267122eaa.17 for ; Mon, 06 Feb 2012 22:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; bh=kbSWRc2bx51SMxoqUabCNO8J5MmTO/bwrLaLmL82MMg=; b=B4JrKgmjasDdiKZg28fxoEGX9/+p5DdAFzavZOLK19aW8FibhwryPOdl3d0RqYWGzD JPV+IQTn4dvoLA0U/VgKRK70zzhaI45Ek1KjHEwVX3hl6RBdmZWY/BMFHdRjYwgb5KGa Co0cubvrY31wFJCvikVw2VCFxPmsaauTOBvOk= Original-Received: by 10.213.101.20 with SMTP id a20mr1807126ebo.83.1328595761047; Mon, 06 Feb 2012 22:22:41 -0800 (PST) Original-Received: from localhost (mnch-5d87436b.pool.mediaWays.net. [93.135.67.107]) by mx.google.com with ESMTPS id n17sm69843435eei.3.2012.02.06.22.22.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Feb 2012 22:22:40 -0800 (PST) In-Reply-To: (Andreas Schwab's message of "Mon, 06 Feb 2012 16:29:52 +0100") X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81245 Archived-At: Hi, ("subject" ".*\\[ab-cd-ef\\].* "news.ab-cd-ef") works fine. Thank you both for your suggestions! Best, Michael 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."