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

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

Re: Then how to replace all my $$ ... $$ to \[ \] through search and rep


From: Nikos Apostolakis
Subject: Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?
Date: Fri, 15 Aug 2008 21:18:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Fri, Aug 15 2008, Ralf Angeli wrote:
>
>> * Phil Carmody (2008-08-15) writes:
>>> $$ What about this $1,000,000 example? $$
>> C-M-% \$\$ <RET> \,(if (zerop (mod \# 2)) "\\[" "\\]") <RET>
>
> (replace-string "$$" '("\\\[" "\\\]"))
>

This is great!

Is this an undocumented feature of replace-string?  I can't find it in
the help string or the info manual.

Nikos





reply via email to

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