help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ediff regexp


From: Frederik Fouvry
Subject: ediff regexp
Date: 30 Oct 2003 18:24:43 +0100
User-agent: Emacs Gnus

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]