From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help Subject: regexp problems the evil \[ Date: Thu, 23 Mar 2017 21:57:36 +0000 Message-ID: <87shm3fygf.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490306311 8328 195.159.176.226 (23 Mar 2017 21:58:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 21:58:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 23 22:58:26 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crAkL-0000eu-TC for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 22:58:18 +0100 Original-Received: from localhost ([::1]:58983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crAkR-0006Ix-L8 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 17:58:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crAjy-0006IC-47 for help-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crAjt-00043W-Bj for help-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:57:54 -0400 Original-Received: from [195.159.176.226] (port=59497 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crAjt-00043E-68 for help-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:57:49 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1crAjh-00050v-AZ for help-gnu-emacs@gnu.org; Thu, 23 Mar 2017 22:57:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:rqwuxFQuE6IZLDKNSSffMc2FU8E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112642 Archived-At: Hi The following drives me crazy (query-replace "\\[" "\\begin{displaymath}\n" nil) Replaces \[ by \begin{displaymath} But (query-replace-regexp "\\[\\([^}]+\\)\\]" "@\\1" nil)) Does not replace \[eq:testpandoc:1\] By @eq:testpandoc:1 What do I miss? Thanks Uwe Brauer