[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus nnmail-split-fancy regexps can’t support backrefs inside themse
From: |
tomas |
Subject: |
Re: Gnus nnmail-split-fancy regexps can’t support backrefs inside themselves? |
Date: |
Sat, 17 Mar 2018 09:25:06 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Mar 16, 2018 at 08:15:59PM +0100, Garreau, Alexandre wrote:
> If I use a rule with a match regexp including a backreference inside the
> variable nnmail-split-fancy, it doesn’t match anything anymore:
> ("list-id" ".*<\\(gcc\\)-\\(help\\).\\1.\\(gnu\\)\\.org>.*"
> "lists.\\3.\\1.\\2")
What are you trying to match? The above will match "gcc-help#gcc#gnu.org
(where '#' stands here for any character). This looks strange to me (what
is the use of \\(...\\) for a constant match? \1 will always (in the case
of a match, that is) be "gcc", \2 always "help" and \3 always "gnu".
Is that really your intention? What are you trying to match?
> Yet backrefs are supported on the other side of the rule… is this
> normal? why is that? I at least would like a confirmation ^^
Yes, backreferences should work OK.
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlqs0OIACgkQBcgs9XrR2kb/7gCfQtrYNuclg8m8NkKflY4le5SO
4ZIAniW1cb6Xc6W6B07N8QEgxC1roR2E
=8z9X
-----END PGP SIGNATURE-----