7 |
This document describes the differences in the ways that PCRE and Perl handle |
This document describes the differences in the ways that PCRE and Perl handle |
8 |
regular expressions. The differences described here are mainly with respect to |
regular expressions. The differences described here are mainly with respect to |
9 |
Perl 5.8, though PCRE versions 7.0 and later contain some features that are |
Perl 5.8, though PCRE versions 7.0 and later contain some features that are |
10 |
expected to be in the forthcoming Perl 5.10. |
in Perl 5.10. |
11 |
.P |
.P |
12 |
1. PCRE has only a subset of Perl's UTF-8 and Unicode support. Details of what |
1. PCRE has only a subset of Perl's UTF-8 and Unicode support. Details of what |
13 |
it does have are given in the |
it does have are given in the |
109 |
(e) PCRE_ANCHORED can be used at matching time to force a pattern to be tried |
(e) PCRE_ANCHORED can be used at matching time to force a pattern to be tried |
110 |
only at the first matching position in the subject string. |
only at the first matching position in the subject string. |
111 |
.sp |
.sp |
112 |
(f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, and PCRE_NO_AUTO_CAPTURE |
(f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART, and |
113 |
options for \fBpcre_exec()\fP have no Perl equivalents. |
PCRE_NO_AUTO_CAPTURE options for \fBpcre_exec()\fP have no Perl equivalents. |
114 |
.sp |
.sp |
115 |
(g) The \eR escape sequence can be restricted to match only CR, LF, or CRLF |
(g) The \eR escape sequence can be restricted to match only CR, LF, or CRLF |
116 |
by the PCRE_BSR_ANYCRLF option. |
by the PCRE_BSR_ANYCRLF option. |
143 |
.rs |
.rs |
144 |
.sp |
.sp |
145 |
.nf |
.nf |
146 |
Last updated: 11 September 2007 |
Last updated: 11 September 2009 |
147 |
Copyright (c) 1997-2007 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
148 |
.fi |
.fi |