[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: |
Ralf Angeli |
Subject: |
Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace? |
Date: |
Fri, 15 Aug 2008 12:13:38 +0200 |
* Phil Carmody (2008-08-15) writes:
> Tassilo Horn <tassilo@member.fsf.org> writes:
>> Ralf Angeli <dev.null@caeruleus.net> writes:
>>
>>>> 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.
>
> $$ What about this $1,000,000 example? $$
Then you could use something like
C-M-% \$\$ <RET> \,(if (zerop (mod \# 2)) "\\[" "\\]") <RET>
--
Ralf
- Then how to replace all my $$ ... $$ to \[ \] through search and replace?, xiaopeng hu, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Tassilo Horn, 2008/08/15
- Message not available
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Ralf Angeli, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Tassilo Horn, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Thierry Volpiatto, 2008/08/15
- Message not available
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Phil Carmody, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?,
Ralf Angeli <=
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Nikos Apostolakis, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/16
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, harven, 2008/08/16
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/16