Re: [pcre-dev] Why recursion occurs?

Page principale
Supprimer ce message
Auteur: BF
Date:  
À: pcre-dev
Sujet: Re: [pcre-dev] Why recursion occurs?
On Mon, 25 Apr 2011 12:06:41 +0400, Philip Hazel <ph10@???>
wrote:

>
> The explanation is not complete. I will add a sentence that says
> something like "The match() function is also called in other
> circumstances, for example, whenever a parenthesized sub-pattern is
> entered and in certain cases of repetition."
>


Why a parenthesized sub-pattern produces recursion?
Why each of a consequent parenthesized sub-patterns produces not
consequent but a deep recursion match() calls?

PCRE version 8.11 2010-12-10
/(a)(b)(c)/
\Mabc
Minimum match() limit = 5
Minimum match() recursion limit = 4
0: abc
1: a
2: b
3: c

Thanx.