all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ruslan Spivak <ruslan.spivak@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to search with 'Match case' and 'Match whole word'?
Date: Sat, 14 Jul 2007 01:57:59 +0300	[thread overview]
Message-ID: <m34pk729oo.fsf@gmail.com> (raw)
In-Reply-To: 1184352587.368019.212300@g12g2000prg.googlegroups.com

Vols <volunteers@gmail.com> writes:

> Hi, group,
>
> I tried to find all the ' / ' inside my codes and I used C-s /
>
> All the ' /*  */ ' and    '//' show up. How to search with 'Match
> whole word'?
>
> How about for the 'match case' search?
>

Hi,

I guess what you are looking for is regexp search.

You can use incremental regexp search with C-M-s and enter regular
expression corresponding to your needs or use M-x occur again with
regexp to show all occurrences at once.

case-fold-search variable determines whether searches are case sensitive.
You can temporarily change its value in your current buffer with 
M-x set-variable ENTER case-fold-search ENTER nil ENTER

Foregoing will make search operations case sensitive

BTW, by default search is not case sensitive unless you type in mixed
case or uppercase and if you do that Emacs understands that you want 
to make case sensitive search.

Ruslan

-- 
"The evil that is in the world almost always comes of ignorance, and
good intentions may do as much harm as malevolence if they lack
understanding." -- Albert Camus

      parent reply	other threads:[~2007-07-13 22:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13 18:49 How to search with 'Match case' and 'Match whole word'? Vols
2007-07-13 22:17 ` Peter Dyballa
2007-07-13 22:57 ` Ruslan Spivak [this message]

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=m34pk729oo.fsf@gmail.com \
    --to=ruslan.spivak@gmail.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.