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

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

Re: Query replace regex with 2 alternatives


From: Barry Margolin
Subject: Re: Query replace regex with 2 alternatives
Date: Sat, 08 Dec 2012 00:31:54 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <ictxrxeief.fsf@home.home>, Dan Espen <despen@verizon.net> 
wrote:

> Barry Margolin <barmar@alum.mit.edu> writes:
> > &lt;\|&gt;
> > Replace with:
> > \,(if (string-equal \& "&lt;" "[" "]"))
> 
> This is what I was asking for.
> I pasted both values into emacs and the latter part gave me an
> error, (wrong-number-of-arguments if 1).  The same error I get if
> I try to evaluate the expression.  Not important now, I got the idea.

Sorry, I misplaced a parenthesis, it should be:

\,(if (string-equal \& "&lt;") "[" "]")

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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