all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Carmody <thefatphil_demunged@yahoo.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?
Date: Fri, 15 Aug 2008 12:34:17 +0300	[thread overview]
Message-ID: <87ej4qmxk6.fsf@nonospaz.fatphil.org> (raw)
In-Reply-To: mailman.16770.1218791143.18990.help-gnu-emacs@gnu.org

Tassilo Horn <tassilo@member.fsf.org> writes:
> 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.

$$ 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


  parent reply	other threads:[~2008-08-15  9:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15  7:29 Then how to replace all my $$ ... $$ to \[ \] through search and replace? xiaopeng hu
2008-08-15  7:54 ` Tassilo Horn
     [not found] ` <mailman.16764.1218786903.18990.help-gnu-emacs@gnu.org>
2008-08-15  8:40   ` Ralf Angeli
2008-08-15  9:05     ` Tassilo Horn
2008-08-15  9:08     ` Thierry Volpiatto
     [not found]     ` <mailman.16770.1218791143.18990.help-gnu-emacs@gnu.org>
2008-08-15  9:34       ` Phil Carmody [this message]
2008-08-15 10:13         ` Ralf Angeli
2008-08-15 17:24           ` Reiner Steib
2008-08-16  1:18             ` Nikos Apostolakis
2008-08-16  9:21               ` Reiner Steib
2008-08-16 13:49                 ` harven
2008-08-16 15:45                   ` Reiner Steib
     [not found] <mailman.16760.1218785698.18990.help-gnu-emacs@gnu.org>
2008-08-15  8:01 ` Xah
2008-08-15 14:25 ` Malte Spiess

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ej4qmxk6.fsf@nonospaz.fatphil.org \
    --to=thefatphil_demunged@yahoo.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.