all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Gnus nnmail-split-fancy regexps can’t support backrefs inside themselves?
Date: Tue, 20 Mar 2018 22:09:44 +0100	[thread overview]
Message-ID: <20180320210944.GA23960@tuxteam.de> (raw)
In-Reply-To: <jwvbmfiy03p.fsf-monnier+gmane.emacs.help@gnu.org>

-----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	other threads:[~2018-03-20 21:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16 19:15 Gnus nnmail-split-fancy regexps can’t support backrefs inside themselves? Garreau, Alexandre
2018-03-17  8:25 ` tomas
2018-03-19 12:57   ` Garreau, Alexandre
2018-03-19 15:10     ` tomas
2018-03-20 20:20 ` Stefan Monnier
2018-03-20 21:09   ` tomas [this message]
2018-03-20 22:05     ` Stefan Monnier

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=20180320210944.GA23960@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.