From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace? Date: Fri, 15 Aug 2008 10:40:30 +0200 Organization: nil Message-ID: <48a540fe$0$11744$9b4e6d93@newsspool1.arcor-online.net> References: Reply-To: angeli@caeruleus.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218789827 4809 80.91.229.12 (15 Aug 2008 08:43:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 08:43:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 10:44:39 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTuvC-0005bj-QI for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 10:44:35 +0200 Original-Received: from localhost ([127.0.0.1]:36234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTuuF-0002ec-Lq for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 04:43:35 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody Cancel-Lock: sha1:N9pt7DpOFiqxWL+mReWrPGBTEiY= Original-Lines: 14 Original-NNTP-Posting-Date: 15 Aug 2008 10:40:30 CEST Original-NNTP-Posting-Host: 2664b179.newsspool1.arcor-online.net Original-X-Trace: DXC=F:D0Y6^d?R\V; Ef1`Jk54\ic==]BZ:af^4Fo<]lROoRQ4nDHegD_]RUTGQe:>IV=3P392BQYIaSbYD\SojI5:1j]=Nj:>ji=fN]k:ob0`Io@U\ Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:161314 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56660 Archived-At: * Tassilo Horn (2008-08-15) writes: > "xiaopeng hu" writes: > >> Then how to replace all my $$ ... $$ to \[ \] through search and >> replace? Thanks > > M-x query-replace-regexp RET \$\$\(.+\)\$\$ RET \\[\1\\] RET This won't work because `.' does not match a newline. Using `[^$]' instead should do it. -- Ralf