From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: regex question Date: Mon, 19 May 2003 18:18:49 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87znljuide.fsf@web.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053361614 23000 80.91.224.249 (19 May 2003 16:26:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 16:26:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 19 18:26:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19HnST-0005sD-00 for ; Mon, 19 May 2003 18:25:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HnNk-0004YY-0A for gnu-help-gnu-emacs@m.gmane.org; Mon, 19 May 2003 12:21:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9882 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9882 upro writes: > I want to use M-x replace-regexp like this > > s/[a-z]''/$1"/g I'm not sure what this means, but I assume you want to replace stuff like a'' with a". > the first part [a-z]'' works, but then the mathed lowercase letter is > not reinserted, but a litteral $1. > > How does that work in emacs-regex? I don't find the relevant info in > the info file... You could do: `M-x replace-regexp RET \([a-z]\)'' RET \1" RET' Regexp syntax in Emacs is described in .