From: thierry.volpiatto@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: How to highlight the matching reqular expression strings
Date: Tue, 17 Mar 2009 07:15:34 +0100 [thread overview]
Message-ID: <87tz5s8yk9.fsf@tux.homenetwork> (raw)
In-Reply-To: 49BF2727.5080300@cdotb.ernet.in
Hi,
Anand Dhanakshirur <asd@cdotb.ernet.in> writes:
> Hi Bastien,
> Thanks,
> It worked for regexp like als.bd(any character).
> It highlighted the matching strings.
> But it did not work for als*bd(mutliple characters).
> It did not highlight the matching strings.
> How to do this?
May be you misunderstand the use of * here, that do not have the same
meaning that in shell like *.el.(globbing).
,----
| `*'
| is not a construct by itself; it is a postfix operator that means
| to match the preceding regular expression repetitively as many
| times as possible. Thus, `o*' matches any number of `o's
| (including no `o's).
|
| `*' always applies to the _smallest_ possible preceding
| expression. Thus, `fo*' has a repeating `o', not a repeating
| `fo'. It matches `f', `fo', `foo', and so on.
`----
Have a look at the elisp manual about regexps.
[eval - C-x C-e] ==> (info "(elisp)Regexp Special")
> Do
> Bastien wrote:
>> Anand Dhanakshirur <asd@cdotb.ernet.in> writes:
>>
>>
>>> Kindly tell me How to do regular expression seach in emacs buffer.
>>> for ex: i want to know(highlight) the all the text which are als*.
>>>
>>
>> C-u C-s a l s *
>>
>>
>
>
>
>
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next prev parent reply other threads:[~2009-03-17 6:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 4:29 How to highlight the matching reqular expression strings Anand Dhanakshirur
2009-03-17 6:15 ` thierry.volpiatto [this message]
[not found] <mailman.3363.1237263608.31690.help-gnu-emacs@gnu.org>
2009-03-17 8:55 ` Giorgos Keramidas
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=87tz5s8yk9.fsf@tux.homenetwork \
--to=thierry.volpiatto@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.
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).