From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Frederik Fouvry Newsgroups: gmane.emacs.help Subject: ediff regexp Date: 30 Oct 2003 18:24:43 +0100 Organization: SFB 378, Computerlinguistik, =?iso-8859-1?q?Universit=E4t?= des Saarlandes Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067535230 19138 80.91.224.253 (30 Oct 2003 17:33:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2003 17:33:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 30 18:33:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFGg8-0003J0-00 for ; Thu, 30 Oct 2003 18:33:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AFGfx-0004At-Dv for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Oct 2003 12:33:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!npeer.de.kpn-eurorings.net!news-kar1.dfn.de!hades.rz.uni-saarland.de!hades.rz.uni-sb.de Original-Newsgroups: gnu.emacs.help Original-Lines: 27 User-Agent: Emacs Gnus Original-Xref: shelby.stanford.edu gnu.emacs.help:117717 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:13652 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13652 Hi, In Ediff there's a way to hide differences that match certain regular expressions, e.g. A: ^ B: ^\^[^^]*$ which will hide any difference where the region in B starts with a caret, and does not contain any more carets. So far so good. I'd like to do something like the following: A: ^\(.*\) B: ^\^\1$ where whatever is matched in A should occur in on the indicated position. (Strictly speaking, the regexp syntax I used is wrong because \1 in B cannot refer to whatever was matched in A, but I hope it conveys the idea.) Is there a way to do this? Thanks, Frederik Fouvry