From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How do I search for 9001 or 4001
Date: Wed, 22 Aug 2012 10:45:22 -0400 [thread overview]
Message-ID: <barmar-765119.10452222082012@news.eternal-september.org> (raw)
In-Reply-To: mailman.7406.1345632926.855.help-gnu-emacs@gnu.org
In article <mailman.7406.1345632926.855.help-gnu-emacs@gnu.org>,
acomber <deedexy@gmail.com> wrote:
> I want to do a regex search for the text '4001' or '9001'. I thought C-M-s
> 4001|9001 would work but it doesn't. How do I do this?
4001\|9001 will work. Emacs uses basic regular expressions, which means
that the extended regexp operators have to be escaped. This means you
have to use \(, \|, and \) instead of (, |, and ).
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
next prev parent reply other threads:[~2012-08-22 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7406.1345632926.855.help-gnu-emacs@gnu.org>
2012-08-22 12:34 ` How do I search for 9001 or 4001 Joost Kremers
2012-08-22 14:45 ` Barry Margolin [this message]
2012-08-22 21:30 ` Joe Fineman
2012-08-23 2:06 ` Barry Margolin
2012-08-23 21:33 ` Joe Fineman
2012-08-22 10:55 acomber
2012-08-22 11:12 ` acomber
2012-08-22 11:21 ` Mark Skilbeck
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=barmar-765119.10452222082012@news.eternal-september.org \
--to=barmar@alum.mit.edu \
--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.
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).