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

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

Re: String replace with lisp code


From: C K Kashyap
Subject: Re: String replace with lisp code
Date: Mon, 18 Jul 2011 13:37:31 +0530


M-x query-replace-regexp,
\(sea\)
RET
\,(progn (or count (setq count 1))(setq count (1+ count))(concat "(" (number-to-string count) ")" \1))
RET

;;;;;;;;;;;;

\,EXPR

evaluates the _expression_ and the takes the result for replacement.


Andreas

--
https://launchpad.net/python-mode
https://launchpad.net/s-x-emacs-werkstatt/



Thank you very much Teemu and Andreas!
Regards,
Kashyap 


reply via email to

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