From: Nevin Kapur <nevin@jhu.edu>
Subject: Re: How to match '[' in nnmail-split-fancy
Date: 01 Apr 2001 20:32:37 -0400 [thread overview]
Message-ID: <m34rw8xhsq.fsf@fermat.mts.jhu.edu> (raw)
In-Reply-To: <vaf3dbsqobd.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sun, 01 Apr 2001 23:53:42 +0200")
On Sun, 01 Apr 2001, Kai Großjohann wrote:
> On 01 Apr 2001, Nevin Kapur wrote:
>
>> I'm having trouble matching the character '[' in
>> nnmail-split-fancy. I have the following split rule:
>>
>> ("subject" "\\[.+\\] *$" "junk")
>
> Fancy splitting matches on word boundaries, but `[' can never be the
> start of a word, so you lose. Try ".*\\[.+\\] *$", note the initial
> `.*'.
It looks to me like fancy splitting matches on word boundaries at the
*end* of words, i.e., the above regexp produces
^\\(\\(subject\\):.*\\)\\(\\[.+\\] *$\\)\\>
in nnmail-fancy-split. I can't think of any way to match ']' (or for
that matter any other character that is not a legal word boundary) at the
end of the string with this restriction.
Perhaps someone with better regexp skills than me can help...
--
Nevin
next prev parent reply other threads:[~2001-04-02 0:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-01 21:33 Nevin Kapur
2001-04-01 21:53 ` Kai Großjohann
2001-04-02 0:32 ` Nevin Kapur [this message]
2001-04-02 6:05 ` Kai Großjohann
2001-04-02 15:46 ` Nevin Kapur
2001-04-11 11:52 ` Kai Großjohann
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=m34rw8xhsq.fsf@fermat.mts.jhu.edu \
--to=nevin@jhu.edu \
/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).