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: Dan Espen
Subject: Re: Query replace regex with 2 alternatives
Date: Fri, 07 Dec 2012 16:32:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Tassilo Horn <tsdh@gnu.org> writes:

> Dan Espen <despen@verizon.net> writes:
>
>>> Or maybe this is what you mean:
>>>
>>> &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).
>
> A paren is wrong.  It has to be
>
>   \,(if (string-equal \&) "&lt;" "[" "]")

And now, all of a sudden it penetrates my thick head.

Thanks again.

-- 
Dan Espen


reply via email to

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