unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Jean Louis <bugs@gnu.support>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to automatically escape regex characters for regex search?
Date: Sun, 06 Nov 2022 18:40:44 +0100	[thread overview]
Message-ID: <874jvc6kwz.fsf@mbork.pl> (raw)
In-Reply-To: <CAP_d_8XTci8_YLAnGZ9QBPjvVOd0n-eokH_NAgKHP0EqhkJ6hA@mail.gmail.com>


On 2022-11-06, at 10:17, Yuri Khan <yuri.v.khan@gmail.com> wrote:

> On Sun, 6 Nov 2022 at 16:13, Jean Louis <bugs@gnu.support> wrote:
>
>> Is there any Emacs function to automatically escape regex characters
>> for regex searches?
>
> regexp-quote?

While this is not what OP asked for, `regexp-opt' is also worth knowing
about.

Best,

-- 
Marcin Borkowski
http://mbork.pl



  reply	other threads:[~2022-11-06 17:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06  9:10 How to automatically escape regex characters for regex search? Jean Louis
2022-11-06  9:17 ` Yuri Khan
2022-11-06 17:40   ` Marcin Borkowski [this message]
2022-11-07  5:58     ` Jean Louis
2022-11-06  9:19 ` tomas
2022-11-06  9:24   ` Jean Louis

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jvc6kwz.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).