[Top][All Lists]

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

Re: regexp/emacs selective replace

From: Joost Kremers
Subject: Re: regexp/emacs selective replace
Date: 25 Nov 2009 12:44:25 GMT
User-agent: slrn/0.9.9p1 (Linux)

harven wrote:
> 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 {.*?}

when it comes to regexps, all that counts is "strictly speaking". ;-)

> The first will match
> {xxx
> } 
> because emacs regexp [^...] matches newline if it is not included in the
> brackets.

yup, true. forgot about that...

Joost Kremers                                      address@hidden
Selbst in die Unterwelt dringt durch Spalten Licht

reply via email to

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