all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: Re: regexp problems the evil \[
Date: Fri, 24 Mar 2017 17:07:55 +0000	[thread overview]
Message-ID: <87mvcawql0.fsf@mat.ucm.es> (raw)
In-Reply-To: CA+5B0FOKgmQH+ie5HLVcZv_TK5dOsXHdM5kzbVmkSJHe5fg_jA@mail.gmail.com

>>> "Aurélien" == Aurélien Aptel <aurelien.aptel+emacs@gmail.com> writes:

   > On Thu, Mar 23, 2017 at 11:11 PM, Uwe Brauer <oub@mat.ucm.es> wrote:
   >> Wow six \ I gave up after five.

   > Yes, it's ridiculous, I personally think emacs lisp regexes are
   > unusable once escapes are involved, especially interactively.
   > You can use rx instead of strings to make regexes from s-expressions.
   > Strings elements are always assumed to match literally (rx will always
   > escape whatever is needed to match the string literally).

   >     (query-replace-regexp (rx "\\[" (group (+ (not (any "}")))) "\\]") ...


Ah thanks did not know about it.

Uwe 




  parent reply	other threads:[~2017-03-24 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-23 21:57 regexp problems the evil \[ Uwe Brauer
2017-03-23 22:05 ` Stefan Monnier
2017-03-23 22:11   ` Uwe Brauer
2017-03-23 23:38     ` Aurélien Aptel
2017-03-24  0:38       ` hector
2017-03-24 17:07         ` Uwe Brauer
2017-03-24 17:07       ` Uwe Brauer [this message]
2017-03-24  2:27     ` 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=87mvcawql0.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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.