all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Butler <leo.butler@umanitoba.ca>
To: angelomolina--- via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Cc: angelomolina@tutanota.com
Subject: Re: Making a regex string that matches (
Date: Thu, 10 Mar 2022 09:13:20 -0600	[thread overview]
Message-ID: <87ilslvo1b.fsf@t14.reltub.ca> (raw)
In-Reply-To: <Mxo1pEJ--3-2@tutanota.com> (angelomolina's message of "Thu, 10 Mar 2022 14:36:14 +0100 (CET)")

angelomolina--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> How can I make a regex string if I want to search for (. 

For interactive use, the key sequence (C=Control, M=Alt/Mod):

C-M s (

For programmatic use, you can use

M-x regexp-builder RET

to start up regexp-builder which will let you build regexps
interactively and show the matches in the buffer where you were
working. You will see that

"("

works.

C-c C-q

deletes the *RE-Builder* window that was created (the buffer remains, so
you can re-use it).

-----

Btw, I noticed that regexp-builder is part of GNU Emacs, but there is no
documentation in the manual. The only documentation is found by looking
at the docstring of the function.

Leo



  parent reply	other threads:[~2022-03-10 15:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 13:36 Making a regex string that matches ( angelomolina--- via Users list for the GNU Emacs text editor
2022-03-10 14:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-10 15:51   ` Robert Pluim
2022-03-10 17:14     ` goncholden
2022-03-10 17:48       ` Eric Abrahamsen
2022-03-10 17:57       ` [External] : " Drew Adams
2022-03-10 18:54         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-10 18:03       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-11 12:24       ` Leo Butler
2022-03-11 19:53         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-10 15:13 ` Leo Butler [this message]
2022-03-11 23:43 ` Eduardo Ochs

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=87ilslvo1b.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --cc=angelomolina@tutanota.com \
    --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.