unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mark Skilbeck <m@iammark.us>
To: acomber <deedexy@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: How do I search for 9001 or 4001
Date: Wed, 22 Aug 2012 12:21:48 +0100	[thread overview]
Message-ID: <20120822112148.GA3968@iammark.us> (raw)
In-Reply-To: <1345632915533-262065.post@n5.nabble.com>

You will want to precede that operator with a backslash: 4001\|9001.

Read up on the Emacs Regex stuff (RTFM!): http://www.gnu.org/software/emacs/manual/html_node/emacs/Regexps.html

- mgsk

On Wed, Aug 22, 2012 at 03:55:15AM -0700, acomber 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?
> 
> 
> 
> --
> View this message in context: http://emacs.1067599.n5.nabble.com/How-do-I-search-for-9001-or-4001-tp262065.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.



  parent reply	other threads:[~2012-08-22 11:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 10:55 How do I search for 9001 or 4001 acomber
2012-08-22 11:12 ` acomber
2012-08-22 11:21 ` Mark Skilbeck [this message]
     [not found] <mailman.7406.1345632926.855.help-gnu-emacs@gnu.org>
2012-08-22 12:34 ` Joost Kremers
2012-08-22 14:45 ` Barry Margolin
2012-08-22 21:30   ` Joe Fineman
2012-08-23  2:06     ` Barry Margolin
2012-08-23 21:33       ` Joe Fineman

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=20120822112148.GA3968@iammark.us \
    --to=m@iammark.us \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=deedexy@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).