From 398a48b6d0fe822f10d56f71a30328a1f8f422b1 Mon Sep 17 00:00:00 2001 From: ph10 Date: Sun, 17 Mar 2013 16:51:40 +0000 Subject: Improve wording for captures in negative assertions. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1292 2f5784b3-3f2a-0410-8824-cb99058d5e15 --- doc/pcrecompat.3 | 10 ++++------ 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 -- cgit v1.2.1