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

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

Re: A variant of match-end, but after replacement?


From: Dmitry Gutov
Subject: Re: A variant of match-end, but after replacement?
Date: Sun, 19 Jul 2015 23:23:24 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

By the way,

On 07/19/2015 02:49 PM, Marcin Borkowski wrote:
Note: I have good reasons not to use replace-regexp-in-string, since
I want to replace each match with something different, according to what
was matched inside one of the groups.  AFAIK, replace-regexp-in-string
doesn't support such a use-case.

...it does. Its REP argument can be a function, and in it you're free to choose the replacement based on the match data.



reply via email to

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