From 396e76d002a6d02a8b0db5c6c13202ddab6e6d11 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 18 Feb 2014 18:15:34 +0000 Subject: [PATCH] Update maximum number of capturing groups Also remove limit on non-capturing groups, which no longer exists. Also applies a formatting patch by anonymous. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332866 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/pattern.syntax.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 7d3dc1b488..0a7f11d835 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -1428,8 +1428,7 @@ the captured substrings are "white queen" and "queen", and are numbered 1 and 2. The maximum number of captured substrings - is 99, and the maximum number of all subpatterns, - both capturing and non-capturing, is 200. + is 65535. As a convenient shorthand, if any option settings are @@ -2058,7 +2057,11 @@ linkend="reference.pcre.pattern.modifiers">PCRE_EXTENDED option) and to divide it into three parts for ease of discussion: - ( \( )? [^()]+ (?(1) \) ) + + + The first part matches an optional opening parenthesis, and