[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:
> > <\|>
> > Replace with:
> > \,(if (string-equal \& "<" "[" "]"))
>
> 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 \& "<") "[" "]")
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***