help-gnu-emacs
[Top][All Lists]
Advanced

[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: Tue, 20 Mar 2018 22:09:44 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Mar 20, 2018 at 04:20:41PM -0400, Stefan Monnier wrote:
> 
> Indeed, they don't support backrefs, because Gnus takes the regexp you
> specify and embeds it into a larger regexp which also uses \(...\)
> grouping, so you'd have to offset your backrefs by the proper number of
> preceding \( in order for them to work right (and changes in Emacs/Gnus
> can change this offset, of course, to make things more interesting).

Oh, good catch. Perhaps using explicitly numbered groups \(?NUM:...\)
might help here...

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqxeJgACgkQBcgs9XrR2kY2wQCfblkYkeayFrliIxv1D9UVhS91
uHsAnRoh6QO6Li0/HlkV1on6WbTonCFH
=7wjF
-----END PGP SIGNATURE-----



reply via email to

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