diff --git a/doc/html/pcre2limits.html b/doc/html/pcre2limits.html index eabc4e873..1afb44eca 100644 --- a/doc/html/pcre2limits.html +++ b/doc/html/pcre2limits.html @@ -64,8 +64,11 @@
-The maximum length of name for a named capture group is 32 code units, and the -maximum number of such groups is 10000. +The maximum length of the name for a named capture group as well as the number +of such groups is configurable at build time. The maximum length for the name +defaults to +128 code units, and the maximum number of such groups to +10000.
The maximum length of a name in a (*MARK), (*PRUNE), (*SKIP), or (*THEN) verb @@ -96,7 +99,7 @@
-Last updated: 16 August 2023
+Last updated: 17 August 2025
Copyright © 1997-2023 University of Cambridge.
diff --git a/doc/html/pcre2pattern.html b/doc/html/pcre2pattern.html
index 0bbd71adf..f301be267 100644
--- a/doc/html/pcre2pattern.html
+++ b/doc/html/pcre2pattern.html
@@ -2007,8 +2007,8 @@
In PCRE2, a capture group can be named in one of three ways: (?<name>...) or -(?'name'...) as in Perl, or (?P<name>...) as in Python. Names may be up to 128 -code units long. When PCRE2_UTF is not set, they may contain only ASCII +(?'name'...) as in Perl, or (?P<name>...) as in Python. Names may be up to +128 code units long. When PCRE2_UTF is not set, they may contain only ASCII alphanumeric characters and underscores, but must start with a non-digit. When PCRE2_UTF is set, the syntax of group names is extended to allow any Unicode letter or Unicode decimal digit. In other words, group names must match one of @@ -4183,7 +4183,7 @@
-Last updated: 28 March 2025
+Last updated: 17 August 2025
Copyright © 1997-2024 University of Cambridge.
diff --git a/doc/pcre2.txt b/doc/pcre2.txt
index 40db85f00..247941c6e 100644
--- a/doc/pcre2.txt
+++ b/doc/pcre2.txt
@@ -6238,8 +6238,10 @@ SIZE AND OTHER LIMITATIONS
is set to 250. An application can change this limit by calling
pcre2_set_parens_nest_limit() to set the limit in a compile context.
- The maximum length of name for a named capture group is 32 code units,
- and the maximum number of such groups is 10000.
+ The maximum length of the name for a named capture group as well as the
+ number of such groups is configurable at build time. The maximum length
+ for the name defaults to 128 code units, and the maximum number of such
+ groups to 10000.
The maximum length of a name in a (*MARK), (*PRUNE), (*SKIP), or
(*THEN) verb is 255 code units for the 8-bit library and 65535 code
@@ -6262,7 +6264,7 @@ AUTHOR
REVISION
- Last updated: 16 August 2023
+ Last updated: 17 August 2025
Copyright (c) 1997-2023 University of Cambridge.
@@ -10747,7 +10749,7 @@ AUTHOR
REVISION
- Last updated: 28 March 2025
+ Last updated: 17 August 2025
Copyright (c) 1997-2024 University of Cambridge.
diff --git a/doc/pcre2limits.3 b/doc/pcre2limits.3
index 423dedf60..5e51e5869 100644
--- a/doc/pcre2limits.3
+++ b/doc/pcre2limits.3
@@ -47,8 +47,13 @@ when PCRE2 is built; if not, the default is set to 250. An application can
change this limit by calling pcre2_set_parens_nest_limit() to set the limit in
a compile context.
.P
-The maximum length of name for a named capture group is 32 code units, and the
-maximum number of such groups is 10000.
+The maximum length of the name for a named capture group as well as the number
+of such groups is configurable at build time. The maximum length for the name
+defaults to
+.\" DEFINE MAX_NAME_SIZE
+128 code units, and the maximum number of such groups to
+.\" DEFINE MAX_NAME_COUNT
+10000.
.P
The maximum length of a name in a (*MARK), (*PRUNE), (*SKIP), or (*THEN) verb
is 255 code units for the 8-bit library and 65535 code units for the 16-bit and
@@ -76,6 +81,6 @@ Cambridge, England.
.rs
.sp
.nf
-Last updated: 16 August 2023
+Last updated: 17 August 2025
Copyright (c) 1997-2023 University of Cambridge.
.fi
diff --git a/doc/pcre2pattern.3 b/doc/pcre2pattern.3
index e49b5a338..45b6f01c1 100644
--- a/doc/pcre2pattern.3
+++ b/doc/pcre2pattern.3
@@ -2015,8 +2015,9 @@ the naming of capture groups. This feature was not added to Perl until release
using the Python syntax. PCRE2 supports both the Perl and the Python syntax.
.P
In PCRE2, a capture group can be named in one of three ways: (?