[Top][All Lists]

[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:24:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

m121212 <address@hidden> writes:

> 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?  Also, could
> you explain this part:  {[^}]*} *$ RET ?

  {[^}]*} *$ means

  {          first an opening brace, 
  [^}]*      then any number of characters that are not a closing brace
  }          then a closing brace,
   *         any number of spaces,
  $          and the line ends there
  RET        RETURN to proceed

  This matches {xxx} 
  but not {xxx} \end{center} because the line does not end after the brace.


reply via email to

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