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

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

Re: regexp/emacs selective replace


From: harven
Subject: Re: regexp/emacs selective replace
Date: Wed, 25 Nov 2009 13:36:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Joost Kremers <address@hidden> writes:

> note that {[^}]*} could also have been written as {.*?} (which IHMO is a bit
> clearer and easier to read).

strictly speaking {[^}]*} is not the same as {.*?}
The first will match

{xxx
} 

because emacs regexp [^...] matches newline if it is not included in the
brackets. By the way {.*?} is probably closer to what the OP asks for.


reply via email to

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