[Pcre-svn] [1213] code/trunk/doc/pcrepattern.3: Add more wor…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1213] code/trunk/doc/pcrepattern.3: Add more words about $.
Revision: 1213
          http://vcs.pcre.org/viewvc?view=rev&revision=1213
Author:   ph10
Date:     2012-11-07 17:29:40 +0000 (Wed, 07 Nov 2012)


Log Message:
-----------
Add more words about $.

Modified Paths:
--------------
    code/trunk/doc/pcrepattern.3


Modified: code/trunk/doc/pcrepattern.3
===================================================================
--- code/trunk/doc/pcrepattern.3    2012-11-07 17:13:22 UTC (rev 1212)
+++ code/trunk/doc/pcrepattern.3    2012-11-07 17:29:40 UTC (rev 1213)
@@ -1,4 +1,4 @@
-.TH PCREPATTERN 3 "10 September 2012" "PCRE 8.31"
+.TH PCREPATTERN 3 "07 November 2012" "PCRE 8.32"
 .SH NAME
 PCRE - Perl-compatible regular expressions
 .SH "PCRE REGULAR EXPRESSION DETAILS"
@@ -120,10 +120,11 @@
 they must be in upper case. If more than one of them is present, the last one
 is used.
 .P
-The newline convention affects the interpretation of the dot metacharacter when
-PCRE_DOTALL is not set, and also the behaviour of \eN. However, it does not
-affect what the \eR escape sequence matches. By default, this is any Unicode
-newline sequence, for Perl compatibility. However, this can be changed; see the
+The newline convention affects where the circumflex and dollar assertions are
+true. It also affects the interpretation of the dot metacharacter when
+PCRE_DOTALL is not set, and the behaviour of \eN. However, it does not affect
+what the \eR escape sequence matches. By default, this is any Unicode newline
+sequence, for Perl compatibility. However, this can be changed; see the
 description of \eR in the section entitled
 .\" HTML <a href="#newlineseq">
 .\" </a>
@@ -976,9 +977,13 @@
 .SH "CIRCUMFLEX AND DOLLAR"
 .rs
 .sp
+The circumflex and dollar metacharacters are zero-width assertions. That is, 
+they test for a particular condition being true without consuming any 
+characters from the subject string.
+.P
 Outside a character class, in the default matching mode, the circumflex
-character is an assertion that is true only if the current matching point is
-at the start of the subject string. If the \fIstartoffset\fP argument of
+character is an assertion that is true only if the current matching point is at
+the start of the subject string. If the \fIstartoffset\fP argument of
 \fBpcre_exec()\fP is non-zero, circumflex can never match if the PCRE_MULTILINE
 option is unset. Inside a character class, circumflex has an entirely different
 meaning
@@ -995,12 +1000,12 @@
 "anchored" pattern. (There are also other constructs that can cause a pattern
 to be anchored.)
 .P
-A dollar character is an assertion that is true only if the current matching
-point is at the end of the subject string, or immediately before a newline
-at the end of the string (by default). Dollar need not be the last character of
-the pattern if a number of alternatives are involved, but it should be the last
-item in any branch in which it appears. Dollar has no special meaning in a
-character class.
+The dollar character is an assertion that is true only if the current matching
+point is at the end of the subject string, or immediately before a newline at
+the end of the string (by default). Note, however, that it does not actually
+match the newline. Dollar need not be the last character of the pattern if a
+number of alternatives are involved, but it should be the last item in any
+branch in which it appears. Dollar has no special meaning in a character class.
 .P
 The meaning of dollar can be changed so that it matches only at the very end of
 the string, by setting the PCRE_DOLLAR_ENDONLY option at compile time. This
@@ -2970,6 +2975,6 @@
 .rs
 .sp
 .nf
-Last updated: 10 September 2012
+Last updated: 07 November 2012
 Copyright (c) 1997-2012 University of Cambridge.
 .fi