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: Phil Carmody
Subject: Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?
Date: Fri, 15 Aug 2008 12:34:17 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Tassilo Horn <address@hidden> writes:
> Ralf Angeli <address@hidden> 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.

$$ What about this $1,000,000 example? $$

Such strings may not be possible in the original data set,
of course, so it might not be an issue.

Phil
-- 
The fact that a believer is happier than a sceptic is no more to the 
point than the fact that a drunken man is happier than a sober one. 
The happiness of credulity is a cheap and dangerous quality.
-- George Bernard Shaw (1856-1950), Preface to Androcles and the Lion


reply via email to

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