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: Joost Kremers
Subject: Re: regexp/emacs selective replace
Date: 25 Nov 2009 12:11:50 GMT
User-agent: slrn/0.9.9p1 (Linux)

m121212 wrote:
>
> Thanks for your repsonses!  The solution for me in the end was just to record
> a keyboard macro.  Do you use a particular guide for regexps?

(info "(emacs) Regexps")

>  Also, could
> you explain this part:  {[^}]*} *$ RET ?

see the above info node. ;-) { and the final } are just literal characters,
[...] describes a set of alternatives. ^ negates such a set, so that [^}]
matches any character other than }.

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


-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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