Re: [pcre-dev] Is DEFINE replaceable with smaller construct?

Kezdőlap
Üzenet törlése
Szerző: mavvma
Dátum:  
Címzett: pcre-dev
Tárgy: Re: [pcre-dev] Is DEFINE replaceable with smaller construct?
On Wed, 07 Jan 2009 22:24:59 +0300, Philip Hazel <ph10@???> wrote:

> On Sat, 3 Jan 2009, NN wrote:
>
>> Is there
>> (?(DEFINE)X)
>> equivalent to
>> X{0}
>
> No, if that is part of a larger regex that refers to any group contained
> within the DEFINE.


...(?(DEFINE)(?<a>...)(?<b>...))...
...(?:(?<a>...)(?<b>...)){0}...
Where is difference?

Thanx.
Michael.