Gnus development mailing list
 help / color / mirror / Atom feed
From: Basil Abou El-Komboz <michael.zombok@googlemail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Tassilo Horn <tassilo@member.fsf.org>,  ding@gnus.org
Subject: Re: Fancy-Split / Regexp question
Date: Tue, 07 Feb 2012 07:20:58 +0100	[thread overview]
Message-ID: <sousjin9nat.fsf@gmx.de> (raw)
In-Reply-To: <m2ipjk6kun.fsf@igel.home> (Andreas Schwab's message of "Mon, 06 Feb 2012 16:29:52 +0100")

Hi,

("subject" ".*\\[ab-cd-ef\\].* "news.ab-cd-ef")

works fine. Thank you both for your suggestions!

Best,
Michael


Tassilo Horn <tassilo@member.fsf.org> 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."





  reply	other threads:[~2012-02-07  6:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06  7:01 michael.zombok
2012-02-06 14:08 ` Tassilo Horn
2012-02-06 15:29   ` Andreas Schwab
2012-02-07  6:20     ` Basil Abou El-Komboz [this message]
2012-02-07 15:39   ` Ted Zlatanov
2012-02-07 20:34     ` Lars Ingebrigtsen
2012-02-07 22:34       ` Ted Zlatanov
2012-02-08  8:23         ` Tassilo Horn
2012-02-11 16:26           ` Daniel Dehennin
2012-02-13 17:18             ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sousjin9nat.fsf@gmx.de \
    --to=michael.zombok@googlemail.com \
    --cc=ding@gnus.org \
    --cc=schwab@linux-m68k.org \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).