diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-07-22 16:30:44 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-07-22 16:30:44 +0000 |
commit | 925a5f766203a9cea8ec690627608111331f4dd7 (patch) | |
tree | 2be3053d6a43a3c8b4234c4735472fb5e33ceeb9 /doc/pcre2partial.3 | |
parent | 1c9d6e3bdfcff6563a3f37b547fd702ece2016c8 (diff) | |
download | pcre2-925a5f766203a9cea8ec690627608111331f4dd7.tar.gz |
More partial match tweaks.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1142 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/pcre2partial.3')
-rw-r--r-- | doc/pcre2partial.3 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/pcre2partial.3 b/doc/pcre2partial.3 index 7af75e2..adb7814 100644 --- a/doc/pcre2partial.3 +++ b/doc/pcre2partial.3 @@ -1,4 +1,4 @@ -.TH PCRE2PARTIAL 3 "21 July 2019" "PCRE2 10.34" +.TH PCRE2PARTIAL 3 "22 July 2019" "PCRE2 10.34" .SH NAME PCRE2 - Perl-compatible regular expressions .SH "PARTIAL MATCHING IN PCRE2" @@ -56,15 +56,17 @@ is also disabled for partial matching. A partial match occurs during a call to \fBpcre2_match()\fP when the end of the subject string is reached successfully, but matching cannot continue because more characters are needed, and in addition, either at least one character in -the subject has been inspected or the pattern contains a lookbehind. An +the subject has been inspected or the pattern contains a lookbehind, or (when +PCRE2_PARTIAL_HARD is set) the pattern could match an empty string. An inspected character need not form part of the final matched string; lookbehind assertions and the \eK escape sequence provide ways of inspecting characters before the start of a matched string. .P -The two additional requirements define the cases where adding more characters -to the existing subject may complete the match. Without these conditions there -would be a partial match of an empty string at the end of the subject for all -unanchored patterns (and also for anchored patterns if the subject itself is +The three additional requirements define the cases where adding more characters +to the existing subject may complete the same match that would occur if they +had all been present in the first place. Without these conditions there would +be a partial match of an empty string at the end of the subject for all +unanchored patterns (and also for anchored patterns if the subject itself is empty). .P When a partial match is returned, the first two elements in the ovector point @@ -422,6 +424,6 @@ Cambridge, England. .rs .sp .nf -Last updated: 21 July 2019 +Last updated: 22 July 2019 Copyright (c) 1997-2019 University of Cambridge. .fi |