|
From: | Lute Kamstra |
Subject: | Re: [features request] String transformation in replacement |
Date: | Wed, 06 Jul 2005 12:48:10 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden writes: > I want to make some string transformation during a replacement, I make > a match with \(...\) and want to lowercase the corresponding \1 in the > replacement. (let ((s "ONE TWO")) (string-match "\\<t\\(\\w+\\)" s) (replace-match (downcase (match-string 1 s)) t t s 1)) Lute.
[Prev in Thread] | Current Thread | [Next in Thread] |