From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Regexp replacement problem Date: Sat, 28 Sep 2013 18:50:46 +0200 Message-ID: <524708E6.5040904@easy-emacs.de> References: <86li2hnfzv.fsf@lise.gigiair.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1380386944 24429 80.91.229.3 (28 Sep 2013 16:49:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Sep 2013 16:49:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 28 18:49:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VPxha-000586-7E for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Sep 2013 18:49:06 +0200 Original-Received: from localhost ([::1]:42054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPxhZ-00063f-KR for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Sep 2013 12:49:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPxhJ-00062j-1k for help-gnu-emacs@gnu.org; Sat, 28 Sep 2013 12:48:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPxhB-0003Sd-Nz for help-gnu-emacs@gnu.org; Sat, 28 Sep 2013 12:48:48 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:59392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPxhB-0003SV-Eo for help-gnu-emacs@gnu.org; Sat, 28 Sep 2013 12:48:41 -0400 Original-Received: from purzel.sitgens (brln-4db9cf4d.pool.mediaWays.net [77.185.207.77]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MT3ze-1VFcbQ44d4-00SRyj; Sat, 28 Sep 2013 18:48:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <86li2hnfzv.fsf@lise.gigiair.org> X-Provags-ID: V02:K0:8vD/pa8JClaJBWH8qp9U5Y/j2MVOttIxmzHT9wvOtzq 6ndgGhg+DEWHScrxyfRbdSOYhZHkQMsn14AlCskXHw0TDCtCuy gV28t0snkqz73XLxOElIpv57+EC/tHPGJSajHAyqcqdeRXPauP Hzo3T/t9ny883KmRzeW4Jhbi0K1ChDbz7RbUBvTSYzcIfYPgyy 8s1XcENKonpdjtLMes4A+zSu+bL9Iaww9amruh/Zs65PgixHB6 jQmodNWpi5HtyXrPdg82mqGJQgp5O7vItNPrhcUJfrFSZy4YC6 aM+a+R4pQodo1hg0+K7qh16UZVefntUymkez56xBreXd047Y1e lkAcBZeZMdtqD07Kz/xTsjtPBxkfZ4adWJfEyf213 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93717 Archived-At: Am 28.09.2013 17:05, schrieb JJ. Rétorré: > > I want to be prompted for a replacement string for each `l' > in > > \begin{tabular}{lrlllcc} > > matching p{?cm}. > I tried > M-x replace-regexp l p{\?cm} > > but it doesn't work (nor \? only). > > Help me! > M-x query-replace ... will prompt you. When replacing just a string, no regexp is needed. Otherwise M-x query-replace-regexp ...