From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: [Q] stripping banners at the start of messages
Date: 26 Sep 2000 00:14:57 +0200 [thread overview]
Message-ID: <vafr96815lq.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: Matt Pharr's message of "25 Sep 2000 13:03:25 -0700"
On 25 Sep 2000, Matt Pharr wrote:
> Since there's a lot of arcane magic in figuring out these multi-line
> regexps (I'd never be able to put together magic like the above,
> much as I hate the egroups banners), I've got a suggested patch that
> I just cooked up.
Well, \\(.\\|\n\\)* matches a sequence of zero or more characters,
including newline characters. Hence, "x\\(.\\|\n\\)*y" matches from
the first x to the last y in a message.
The problems start when you have two banners in a message, one at the
beginning and one at the end. If both start with x and end with y,
the above regex will do the wrong thing.
kai
--
I like BOTH kinds of music.
next prev parent reply other threads:[~2000-09-25 22:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-23 7:12 Steinar Bang
2000-09-23 11:55 ` Emerick Rogul
2000-09-25 14:41 ` Paul Stevenson
2000-09-25 15:25 ` Kai Großjohann
[not found] ` <wtnr9688p2v.fsf@licia.dtek.chalmers.se>
2000-09-26 9:35 ` Paul Stevenson
[not found] ` <wtnk8bzl12k.fsf@licia.dtek.chalmers.se>
2000-09-26 14:01 ` Paul Stevenson
[not found] ` <wtn66nji4ff.fsf@licia.dtek.chalmers.se>
2000-09-26 15:05 ` Paul Stevenson
2000-09-26 15:20 ` Kai Großjohann
2000-10-02 17:50 ` Toby Speight
[not found] ` <wtn66nko6zl.fsf@licia.dtek.chalmers.se>
2000-09-25 20:03 ` Matt Pharr
2000-09-25 22:14 ` Kai Großjohann [this message]
2000-09-25 22:24 ` Steve Harris
2000-09-26 8:39 ` Paul Stevenson
2000-09-26 9:14 ` Kai Großjohann
2000-10-02 17:48 ` Toby Speight
2000-10-02 18:52 ` ShengHuo ZHU
2000-10-03 9:37 ` Paul Stevenson
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=vafr96815lq.fsf@lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
--cc=ding@gnus.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).