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: Johan Bockgård
Subject: Re: Problem with regexp nested groups
Date: Sun, 11 May 2008 11:14:38 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

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.

-- 
Johan Bockgård


reply via email to

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