[pcre-dev] [Bug 760] Named patterns with same index conflict

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 760] Named patterns with same index conflict
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=760




--- Comment #3 from Philip Hazel <ph10@???> 2008-09-14 15:18:39 ---
On Sat, 13 Sep 2008, Stan Vassilev wrote:

> I am not sure what Perl does, it may be worth checking out, in order to be
> fully compatible. I don't know enough about the actual PCRE API and
> architecture to suggest a foolproof solution, but here are few approaches as
> brainstorming.


Thanks. I'll pick up on those when I finally get round to looking at
this. The only thought I have had was: WHY? That is, why would anybody
use a "switch group", specifically asking for different groups to have
the same numbers, and then want to give them different names? One brutal
approach might simply be to forbid this. In other words, specify that if
several groups have the same number, they must have the same name as
well. (PCRE does permit groups with the same name to have different
numbers, however.)

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email