mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
8.45
This commit is contained in:
@ -1699,7 +1699,7 @@ very long time, and so the \fImatch_limit\fP value is also used in this case
|
||||
.P
|
||||
The default value for the limit can be set when PCRE is built; the default
|
||||
default is 10 million, which handles all but the most extreme cases. You can
|
||||
override the default by suppling \fBpcre_exec()\fP with a \fBpcre_extra\fP
|
||||
override the default by supplying \fBpcre_exec()\fP with a \fBpcre_extra\fP
|
||||
block in which \fImatch_limit\fP is set, and PCRE_EXTRA_MATCH_LIMIT is set in
|
||||
the \fIflags\fP field. If the limit is exceeded, \fBpcre_exec()\fP returns
|
||||
PCRE_ERROR_MATCHLIMIT.
|
||||
@ -1726,7 +1726,7 @@ and is ignored, when matching is done using JIT compiled code.
|
||||
.P
|
||||
The default value for \fImatch_limit_recursion\fP can be set when PCRE is
|
||||
built; the default default is the same value as the default for
|
||||
\fImatch_limit\fP. You can override the default by suppling \fBpcre_exec()\fP
|
||||
\fImatch_limit\fP. You can override the default by supplying \fBpcre_exec()\fP
|
||||
with a \fBpcre_extra\fP block in which \fImatch_limit_recursion\fP is set, and
|
||||
PCRE_EXTRA_MATCH_LIMIT_RECURSION is set in the \fIflags\fP field. If the limit
|
||||
is exceeded, \fBpcre_exec()\fP returns PCRE_ERROR_RECURSIONLIMIT.
|
||||
@ -2044,10 +2044,10 @@ lookbehind. For example, consider the pattern
|
||||
.sp
|
||||
which finds occurrences of "iss" in the middle of words. (\eB matches only if
|
||||
the current position in the subject is not a word boundary.) When applied to
|
||||
the string "Mississipi" the first call to \fBpcre_exec()\fP finds the first
|
||||
the string "Mississippi" the first call to \fBpcre_exec()\fP finds the first
|
||||
occurrence. If \fBpcre_exec()\fP is called again with just the remainder of the
|
||||
subject, namely "issipi", it does not match, because \eB is always false at the
|
||||
start of the subject, which is deemed to be a word boundary. However, if
|
||||
subject, namely "issippi", it does not match, because \eB is always false at
|
||||
the start of the subject, which is deemed to be a word boundary. However, if
|
||||
\fBpcre_exec()\fP is passed the entire string again, but with \fIstartoffset\fP
|
||||
set to 4, it finds the second occurrence of "iss" because it is able to look
|
||||
behind the starting point to discover that it is preceded by a letter.
|
||||
|
Reference in New Issue
Block a user