| 1 |
.TH PCRE 3 |
.TH PCRECOMPAT 3 |
| 2 |
.SH NAME |
.SH NAME |
| 3 |
PCRE - Perl-compatible regular expressions |
PCRE - Perl-compatible regular expressions |
| 4 |
.SH "DIFFERENCES BETWEEN PCRE AND PERL" |
.SH "DIFFERENCES BETWEEN PCRE AND PERL" |
| 8 |
regular expressions. The differences described here are with respect to Perl |
regular expressions. The differences described here are with respect to Perl |
| 9 |
5.8. |
5.8. |
| 10 |
.P |
.P |
| 11 |
1. PCRE does not have full UTF-8 support. Details of what it does have are |
1. PCRE has only a subset of Perl's UTF-8 and Unicode support. Details of what |
| 12 |
given in the |
it does have are given in the |
| 13 |
.\" HTML <a href="pcre.html#utf8support"> |
.\" HTML <a href="pcre.html#utf8support"> |
| 14 |
.\" </a> |
.\" </a> |
| 15 |
section on UTF-8 support |
section on UTF-8 support |
| 44 |
6. The Perl escape sequences \ep, \eP, and \eX are supported only if PCRE is |
6. The Perl escape sequences \ep, \eP, and \eX are supported only if PCRE is |
| 45 |
built with Unicode character property support. The properties that can be |
built with Unicode character property support. The properties that can be |
| 46 |
tested with \ep and \eP are limited to the general category properties such as |
tested with \ep and \eP are limited to the general category properties such as |
| 47 |
Lu and Nd. |
Lu and Nd, script names such as Greek or Han, and the derived properties Any |
| 48 |
|
and L&. |
| 49 |
.P |
.P |
| 50 |
7. PCRE does support the \eQ...\eE escape for quoting substrings. Characters in |
7. PCRE does support the \eQ...\eE escape for quoting substrings. Characters in |
| 51 |
between are treated as literals. This is slightly different from Perl in that $ |
between are treated as literals. This is slightly different from Perl in that $ |
| 86 |
meta-character matches only at the very end of the string. |
meta-character matches only at the very end of the string. |
| 87 |
.sp |
.sp |
| 88 |
(c) If PCRE_EXTRA is set, a backslash followed by a letter with no special |
(c) If PCRE_EXTRA is set, a backslash followed by a letter with no special |
| 89 |
meaning is faulted. |
meaning is faulted. Otherwise, like Perl, the backslash is ignored. (Perl can |
| 90 |
|
be made to issue a warning.) |
| 91 |
.sp |
.sp |
| 92 |
(d) If PCRE_UNGREEDY is set, the greediness of the repetition quantifiers is |
(d) If PCRE_UNGREEDY is set, the greediness of the repetition quantifiers is |
| 93 |
inverted, that is, by default they are not greedy, but if followed by a |
inverted, that is, by default they are not greedy, but if followed by a |
| 116 |
.sp |
.sp |
| 117 |
(m) Patterns compiled by PCRE can be saved and re-used at a later time, even on |
(m) Patterns compiled by PCRE can be saved and re-used at a later time, even on |
| 118 |
different hosts that have the other endianness. |
different hosts that have the other endianness. |
| 119 |
|
.sp |
| 120 |
|
(n) The alternative matching function (\fBpcre_dfa_exec()\fP) matches in a |
| 121 |
|
different way and is not Perl-compatible. |
| 122 |
.P |
.P |
| 123 |
.in 0 |
.in 0 |
| 124 |
Last updated: 09 September 2004 |
Last updated: 06 June 2006 |
| 125 |
.br |
.br |
| 126 |
Copyright (c) 1997-2004 University of Cambridge. |
Copyright (c) 1997-2006 University of Cambridge. |