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

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

Re: Problem with regexp nested groups


From: Marc Tfardy
Subject: Re: Problem with regexp nested groups
Date: Sun, 11 May 2008 13:59:52 +0200
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Johan Bockgård schrieb:
Marc Tfardy <m-t-o___CUT__IT@web.de> writes:

Not good. Now I replace (match-string-no-properties 1) with
(match-string-no-properties 2) and I get only two results for both
DATA lines:

found: some/file/sample1.mp3
found: some/file/sample2.mp3
found: nil

In CVS Emacs:

"\\(DATA=\"\\(.*?\.mp3\\)\"\\|OBJ('\\(?2:.*?\.mp3\\)')\\)"

** The regexp form \(?<num>:<regexp>\) specifies the group number
   explicitly.

Great! One reason more to install CVS version :) Thanks.

regards

Marc




reply via email to

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