From: Alan Mackenzie <acm@muc.de>
To: TheLonelyStar <nabble@lonely-star.org>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Trouble with regexp
Date: 22 May 2008 18:47:44 +0200 [thread overview]
Message-ID: <20080522184443.E73965@colin2.muc.de> (raw)
In-Reply-To: <17407478.post@talk.nabble.com>
Hi, TLS!
On Thu, 22 May 2008, TheLonelyStar wrote:
> Hi,
> I some trouble with regular expression. I thought, the regexp "\(foo\|bar\)"
> should match either foo and bar.
> But if I have a buffer with "foo" in it, the regexp build does not match it
> with that :(.
Are you sure your regexp is what you think it is? If you are typing it
into an elisp program, you need to write:
"\\(foo\\|bar\\)"
. If you've done C-M-s and are typing into the minibuffer, you don't
double the quotes.
> Thanks!
> Nathan
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2008-05-22 16:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 16:00 Trouble with regexp TheLonelyStar
2008-05-22 16:47 ` Alan Mackenzie [this message]
2008-05-22 17:27 ` Joel J. Adamson
[not found] <mailman.12018.1211472045.18990.help-gnu-emacs@gnu.org>
2008-05-22 16:31 ` David Kastrup
[not found] <mailman.12639.1130257485.20277.help-gnu-emacs@gnu.org>
2005-10-25 17:16 ` rgb
2005-10-25 17:38 ` exits funnel
2005-10-25 17:54 ` Pascal Bourguignon
2005-10-25 18:40 ` exits funnel
2005-10-25 17:17 ` Chris McMahan
-- strict thread matches above, loose matches on Subject: below --
2005-10-25 16:24 exits funnel
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=20080522184443.E73965@colin2.muc.de \
--to=acm@muc.de \
--cc=Help-gnu-emacs@gnu.org \
--cc=nabble@lonely-star.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.