[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [features request] String transformation in replacement
From: |
Ralf Angeli |
Subject: |
Re: [features request] String transformation in replacement |
Date: |
Wed, 06 Jul 2005 15:29:10 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
* Daniel Dehennin (2005-07-06) writes:
> Le 4326 Septembre 1993, Lute Kamstra a tapoté:
>> (let ((s "ONE TWO"))
>> (string-match "\\<t\\(\\w+\\)" s)
>> (replace-match (downcase (match-string 1 s)) t t s 1))
>
> Well, in interactive replacement like query-replace-regexp, I can not
> make lisp call in the replacement part :-(
With a CVS Emacs:
C-M-% \(some-regexp\) RET \,(downcase \1) RET
See (info "(emacs)Regexp Replace").
--
Ralf