[Top][All Lists]

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

Re: Numbered regexps throw invalid regex error

From: Andreas Röhler
Subject: Re: Numbered regexps throw invalid regex error
Date: Thu, 26 Jan 2012 10:29:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20111101 SUSE/3.1.16 Thunderbird/3.1.16

Am 26.01.2012 09:30, schrieb Tom:
Andreas Röhler<andreas.roehler<at>>  writes:

There is no mention of an automatic assignment. It says the last one
will win, so assigning a number which is already used for
a previous group should work.

would consider it a bug then - at least a docu bug

I don't think it's a doc bug. The whole point of the feature is that
you can assign constant numbers to groups, so they don't change if you
add/remove parens.

If it can suddenly throw a regexp error, just because you've added
a paren around an other paren then it pretty much defeats the
prupose of the feature.

Probably. OTOH one may arg the error message helps counting.

Could think of a static variant --as is-- as it provides some security.

OTOH one may think at dynamic environments which can't be handled that way.

Anyway in favor of a bug report.

reply via email to

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