diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-03-17 16:51:40 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-03-17 16:51:40 +0000 |
commit | 398a48b6d0fe822f10d56f71a30328a1f8f422b1 (patch) | |
tree | 4ec31e6463be0aa6263c9d8530c0a780ebc112b5 | |
parent | e0621f32a18551cdb02b3c4a6fb73cef5c2a2625 (diff) | |
download | pcre-398a48b6d0fe822f10d56f71a30328a1f8f422b1.tar.gz |
Improve wording for captures in negative assertions.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1292 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r-- | doc/pcrecompat.3 | 10 | ||||
-rw-r--r-- | doc/pcrepattern.3 | 8 |
2 files changed, 8 insertions, 10 deletions
diff --git a/doc/pcrecompat.3 b/doc/pcrecompat.3 index 09d0a84..4b191d6 100644 --- a/doc/pcrecompat.3 +++ b/doc/pcrecompat.3 @@ -1,4 +1,4 @@ -.TH PCRECOMPAT 3 "23 February 2013" "PCRE 8.33" +.TH PCRECOMPAT 3 "17 March 2013" "PCRE 8.33" .SH NAME PCRE - Perl-compatible regular expressions .SH "DIFFERENCES BETWEEN PCRE AND PERL" @@ -23,10 +23,8 @@ just once). Perl allows repeat quantifiers on other assertions such as \eb, but these do not seem to have any use. .P 3. Capturing subpatterns that occur inside negative lookahead assertions are -counted, but their entries in the offsets vector are never set. Perl sets its -numerical variables from any such patterns that are matched before the -assertion fails to match something (thereby succeeding), but only if the -negative lookahead assertion contains just one branch. +counted, but their entries in the offsets vector are never set. Perl sometimes +(but not always) sets its numerical variables from inside negative assertions. .P 4. Though binary zero characters are supported in the subject string, they are not allowed in a pattern string because it is passed as a normal C string, @@ -186,6 +184,6 @@ Cambridge CB2 3QH, England. .rs .sp .nf -Last updated: 23 February 2013 +Last updated: 17 March 2013 Copyright (c) 1997-2013 University of Cambridge. .fi diff --git a/doc/pcrepattern.3 b/doc/pcrepattern.3 index f172e55..93a0d79 100644 --- a/doc/pcrepattern.3 +++ b/doc/pcrepattern.3 @@ -1,4 +1,4 @@ -.TH PCREPATTERN 3 "15 March 2013" "PCRE 8.33" +.TH PCREPATTERN 3 "17 March 2013" "PCRE 8.33" .SH NAME PCRE - Perl-compatible regular expressions .SH "PCRE REGULAR EXPRESSION DETAILS" @@ -1975,8 +1975,8 @@ except that it does not cause the current matching position to be changed. Assertion subpatterns are not capturing subpatterns. If such an assertion contains capturing subpatterns within it, these are counted for the purposes of numbering the capturing subpatterns in the whole pattern. However, substring -capturing is carried out only for positive assertions, because it does not make -sense for negative assertions. +capturing is carried out only for positive assertions. (Perl sometimes, but not +always, does do capturing in negative assertions.) .P For compatibility with Perl, assertion subpatterns may be repeated; though it makes no sense to assert the same thing several times, the side effect of @@ -3006,6 +3006,6 @@ Cambridge CB2 3QH, England. .rs .sp .nf -Last updated: 15 March 2013 +Last updated: 17 March 2013 Copyright (c) 1997-2013 University of Cambridge. .fi |