help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replace-regexp


From: Kai Großjohann
Subject: Re: replace-regexp
Date: Tue, 26 Jun 2001 13:50:37 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104

On Tue, 26 Jun 2001, lordemsworthx@yahoo.com wrote:

> When using "+" and "*" in their special meanings, they behave
> "hungrily". How can one make them "non-hungry" (e.g., in Perl, a*?
> would do a "non-hungry" match for "a"s)?

In Emacs 21, you can use "*?" and "+?" like in Perl.

In Emacs 20, it might work to say "\\(\\|a\\)*" to get the effect of
"a*?".

kai
-- 
~/.signature: No such file or directory



reply via email to

[Prev in Thread] Current Thread [Next in Thread]