On Wed, 7 Jan 2009, [email protected] wrote:

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

There probably isn't much, except that (DEFINE) makes it clear exactly 
what is happening. PCRE does compile slightly different code, but I 
don't think it would make any difference to the performance. (The Perl 
documentation says 

  Similar in spirit to "(?{0})" but more efficient.
  
so it looks as if it does make a difference in Perl. 

Philip

-- 
Philip Hazel

-- 
## List details at http://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to