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

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

Re: execute function in replace-regexp


From: Marcin Borkowski
Subject: Re: execute function in replace-regexp
Date: Sun, 01 Oct 2017 20:41:50 +0200
User-agent: mu4e 0.9.19; emacs 26.0.50

On 2017-10-01, at 05:22, Emanuel Berg <moasen@zoho.com> wrote:

> How can I execute a Lisp function, namely
> `downcase', on the match from `replace-regexp'?
>
> I Googled it and found [1] the syntax
>
>     \, (downcase \1)
>
> but doesn't get executed, just replaced as is.
>
> [1] 
> https://emacs.stackexchange.com/questions/26492/how-do-i-lowercase-downcase-a-group-with-replace-regexp

BTW, did you see this:
http://mbork.pl/2013-09-18_Selective_replacement_in_LaTeX_documents_(en)
and this:
https://www.masteringemacs.org/article/evaluating-lisp-forms-regular-expressions
?

Hth,

-- 
Marcin Borkowski



reply via email to

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