[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fancy split - simple regexp problem

From: Tim Landscheidt
Subject: Re: Fancy split - simple regexp problem
Date: Thu, 06 Oct 2011 05:05:56 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) (Adam Sjøgren) wrote:

> [...]
> If I change the regexp to "\\w\\w\\w" it goes to bugzilla.gdm - but I
> don't fancy (haha) writing an entry for each possible length.

> What am I doing wrong?
> [...]

Nothing, I think :-). I personally don't use fancy split-
ting, but a deeper look at (at least Gnus 5.13's) code seems
to locate the culprit in Emacs' *backward* regular expres-
sion "non-greedity": Position point at the end of
"bugzilla.gdm", C-u C-r "\w+" - et voilà, only one character
is matched.

  I don't understand why the match is performed backward and
not forward, and the code (nnmail-split-it) looks far too
complicated to just flip it around.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]