[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:
>>>
>>> <\|>
>>> 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).
>
> A paren is wrong. It has to be
>
> \,(if (string-equal \&) "<" "[" "]")
And now, all of a sudden it penetrates my thick head.
Thanks again.
--
Dan Espen