Revision: 1113
http://www.exim.org/viewvc/pcre2?view=rev&revision=1113
Author: ph10
Date: 2019-06-20 16:50:21 +0100 (Thu, 20 Jun 2019)
Log Message:
-----------
Documentation update.
Modified Paths:
--------------
code/trunk/doc/html/pcre2pattern.html
code/trunk/doc/pcre2.txt
code/trunk/doc/pcre2pattern.3
Modified: code/trunk/doc/html/pcre2pattern.html
===================================================================
--- code/trunk/doc/html/pcre2pattern.html 2019-06-19 16:39:18 UTC (rev 1112)
+++ code/trunk/doc/html/pcre2pattern.html 2019-06-20 15:50:21 UTC (rev 1113)
@@ -3321,12 +3321,13 @@
because an ungreedy quantification with a minimum of zero acts only when a
backtrack happens. Consider, for example,
<pre>
- A(*ACCEPT)??BC
+ (A(*ACCEPT)??B)C
</pre>
where A, B, and C may be complex expressions. After matching "A", the matcher
processes "BC"; if that fails, causing a backtrack, (*ACCEPT) is triggered and
-the match succeeds. Whereas (*COMMIT) (see below) means "fail on backtrack", a
-repeated (*ACCEPT) of this type means "succeed on backtrack".
+the match succeeds. In both cases, all but C is captured. Whereas (*COMMIT)
+(see below) means "fail on backtrack", a repeated (*ACCEPT) of this type means
+"succeed on backtrack".
</P>
<P>
<b>Warning:</b> (*ACCEPT) should not be used within a script run group, because
@@ -3742,7 +3743,7 @@
</P>
<br><a name="SEC31" href="#TOC1">REVISION</a><br>
<P>
-Last updated: 10 June 2019
+Last updated: 20 June 2019
<br>
Copyright © 1997-2019 University of Cambridge.
<br>
Modified: code/trunk/doc/pcre2.txt
===================================================================
--- code/trunk/doc/pcre2.txt 2019-06-19 16:39:18 UTC (rev 1112)
+++ code/trunk/doc/pcre2.txt 2019-06-20 15:50:21 UTC (rev 1113)
@@ -9030,13 +9030,13 @@
fied because an ungreedy quantification with a minimum of zero acts
only when a backtrack happens. Consider, for example,
- A(*ACCEPT)??BC
+ (A(*ACCEPT)??B)C
where A, B, and C may be complex expressions. After matching "A", the
matcher processes "BC"; if that fails, causing a backtrack, (*ACCEPT)
- is triggered and the match succeeds. Whereas (*COMMIT) (see below)
- means "fail on backtrack", a repeated (*ACCEPT) of this type means
- "succeed on backtrack".
+ is triggered and the match succeeds. In both cases, all but C is cap-
+ tured. Whereas (*COMMIT) (see below) means "fail on backtrack", a
+ repeated (*ACCEPT) of this type means "succeed on backtrack".
Warning: (*ACCEPT) should not be used within a script run group,
because it causes an immediate exit from the group, bypassing the
@@ -9428,7 +9428,7 @@
REVISION
- Last updated: 10 June 2019
+ Last updated: 20 June 2019
Copyright (c) 1997-2019 University of Cambridge.
------------------------------------------------------------------------------
Modified: code/trunk/doc/pcre2pattern.3
===================================================================
--- code/trunk/doc/pcre2pattern.3 2019-06-19 16:39:18 UTC (rev 1112)
+++ code/trunk/doc/pcre2pattern.3 2019-06-20 15:50:21 UTC (rev 1113)
@@ -1,4 +1,4 @@
-.TH PCRE2PATTERN 3 "10 June 2019" "PCRE2 10.34"
+.TH PCRE2PATTERN 3 "20 June 2019" "PCRE2 10.34"
.SH NAME
PCRE2 - Perl-compatible regular expressions (revised API)
.SH "PCRE2 REGULAR EXPRESSION DETAILS"
@@ -3366,12 +3366,13 @@
because an ungreedy quantification with a minimum of zero acts only when a
backtrack happens. Consider, for example,
.sp
- A(*ACCEPT)??BC
+ (A(*ACCEPT)??B)C
.sp
where A, B, and C may be complex expressions. After matching "A", the matcher
processes "BC"; if that fails, causing a backtrack, (*ACCEPT) is triggered and
-the match succeeds. Whereas (*COMMIT) (see below) means "fail on backtrack", a
-repeated (*ACCEPT) of this type means "succeed on backtrack".
+the match succeeds. In both cases, all but C is captured. Whereas (*COMMIT)
+(see below) means "fail on backtrack", a repeated (*ACCEPT) of this type means
+"succeed on backtrack".
.P
\fBWarning:\fP (*ACCEPT) should not be used within a script run group, because
it causes an immediate exit from the group, bypassing the script run checking.
@@ -3777,6 +3778,6 @@
.rs
.sp
.nf
-Last updated: 10 June 2019
+Last updated: 20 June 2019
Copyright (c) 1997-2019 University of Cambridge.
.fi