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: Tassilo Horn
Subject: Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?
Date: Fri, 15 Aug 2008 11:05:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Ralf Angeli <dev.null@caeruleus.net> writes:

Hi Ralf,

>> M-x query-replace-regexp RET \$\$\(.+\)\$\$ RET \\[\1\\] RET
>
> This won't work because `.' does not match a newline.

Ok, but at least it works for oneliners.

> Using `[^$]' instead should do it.

Right, that's better.

Bye,
Tassilo
-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_





reply via email to

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