summaryrefslogtreecommitdiff
path: root/doc/html/pcrepattern.html
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-17 09:38:32 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-17 09:38:32 +0000
commit860041b0856fb978874554395e344ee5407d93df (patch)
tree4c41c85a3c8eb4e6032ff74a8e3f9a386dbabb97 /doc/html/pcrepattern.html
parenta25c4effe77bf80ee50bcc4ca6969e1207b6a51e (diff)
downloadpcre-860041b0856fb978874554395e344ee5407d93df.tar.gz
(1) Update tests 2,5,7,8 to run when --enable-bsr-anycrlf is used.
(2) Updates files changed by building test release. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@247 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'doc/html/pcrepattern.html')
-rw-r--r--doc/html/pcrepattern.html22
1 files changed, 13 insertions, 9 deletions
diff --git a/doc/html/pcrepattern.html b/doc/html/pcrepattern.html
index 4b3964f..13cfc55 100644
--- a/doc/html/pcrepattern.html
+++ b/doc/html/pcrepattern.html
@@ -113,7 +113,8 @@ The newline convention does not affect what the \R escape sequence matches. By
default, this is any Unicode newline sequence, for Perl compatibility. However,
this can be changed; see the description of \R in the section entitled
<a href="#newlineseq">"Newline sequences"</a>
-below.
+below. A change of \R setting can be combined with a change of newline
+convention.
</P>
<br><a name="SEC3" href="#TOC1">CHARACTERS AND METACHARACTERS</a><br>
<P>
@@ -427,10 +428,11 @@ recognized.
<P>
It is possible to restrict \R to match only CR, LF, or CRLF (instead of the
complete set of Unicode line endings) by setting the option PCRE_BSR_ANYCRLF
-either at compile time or when the pattern is matched. This can be made the
-default when PCRE is built; if this is the case, the other behaviour can be
-requested via the PCRE_BSR_UNICODE option. It is also possible to specify these
-settings by starting a pattern string with one of the following sequences:
+either at compile time or when the pattern is matched. (BSR is an abbrevation
+for "backslash R".) This can be made the default when PCRE is built; if this is
+the case, the other behaviour can be requested via the PCRE_BSR_UNICODE option.
+It is also possible to specify these settings by starting a pattern string with
+one of the following sequences:
<pre>
(*BSR_ANYCRLF) CR, LF, or CRLF only
(*BSR_UNICODE) any Unicode newline sequence
@@ -439,9 +441,11 @@ These override the default and the options given to <b>pcre_compile()</b>, but
they can be overridden by options given to <b>pcre_exec()</b>. Note that these
special settings, which are not Perl-compatible, are recognized only at the
very start of a pattern, and that they must be in upper case. If more than one
-of them is present, the last one is used.
-</P>
-<P>
+of them is present, the last one is used. They can be combined with a change of
+newline convention, for example, a pattern can start with:
+<pre>
+ (*ANY)(*BSR_ANYCRLF)
+</pre>
Inside a character class, \R matches the letter "R".
<a name="uniextseq"></a></P>
<br><b>
@@ -2185,7 +2189,7 @@ Cambridge CB2 3QH, England.
</P>
<br><a name="SEC27" href="#TOC1">REVISION</a><br>
<P>
-Last updated: 11 September 2007
+Last updated: 14 September 2007
<br>
Copyright &copy; 1997-2007 University of Cambridge.
<br>