Hm... You should double the \ before \1, because otherwise it's
interpreted as an octal string escape. However after correcting I
can't get this to work either. The \1 is recognized alright, because
a simpler example (e.g. '\(xxx\)...\\1') works as expected, but the
feature you require doesn't work. It may be a bug in regexpr.c, the
copyleft-free reimplementation of Emacs regular expressions that I
use. I guess you'll have to live with it...
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
<URL:http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>