[pcre-dev] Atomic group optimizations issue

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev
Subject: [pcre-dev] Atomic group optimizations issue
Good day!

Here is two pcretest.exe listings:


PCRE version 8.34-RC 2013-06-14
/(?>(1)|2|.)*?(3|4)/
\Mabcdefghijklmnopqrstuvwxyz
Minimum match() limit = 217
Minimum match() recursion limit = 55
No match


PCRE version 8.34-RC 2013-06-14
/(?:(1)|2|.)*?(3|4)/
\Mabcdefghijklmnopqrstuvwxyz
Minimum match() limit = 217
Minimum match() recursion limit = 3
No match


In listing 2 "(?>" is replaced by "(?:". And "Minimum match() recursion
limit" unexpectedly reduces to 3 from 55.

I guess this happens due some internal PCRE optimizations.
Is there possibility to reduce "Minimum match() recursion limit" for
atomic groups in "(?:"-way?


Best regards