/[pcre]/code/trunk/doc/pcrecompat.3
ViewVC logotype

Diff of /code/trunk/doc/pcrecompat.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 75 by nigel, Sat Feb 24 21:40:37 2007 UTC revision 91 by nigel, Sat Feb 24 21:41:34 2007 UTC
# Line 1  Line 1 
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"
# Line 8  This document describes the differences Line 8  This document describes the differences
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
# Line 44  encountered by PCRE, an error is generat Line 44  encountered by PCRE, an error is generat
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 $
# Line 85  string. Perl requires them all to have t Line 86  string. Perl requires them all to have t
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
# Line 114  package. Line 116  package.
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.

Legend:
Removed from v.75  
changed lines
  Added in v.91

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12