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

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

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

revision 452 by ph10, Tue Sep 1 16:10:16 2009 UTC revision 453 by ph10, Fri Sep 18 19:12:35 2009 UTC
# Line 59  encountered by PCRE, an error is generat Line 59  encountered by PCRE, an error is generat
59  built with Unicode character property support. The properties that can be  built with Unicode character property support. The properties that can be
60  tested with \p and \P are limited to the general category properties such as  tested with \p and \P are limited to the general category properties such as
61  Lu and Nd, script names such as Greek or Han, and the derived properties Any  Lu and Nd, script names such as Greek or Han, and the derived properties Any
62  and L&.  and L&. PCRE does support the Cs (surrogate) property, which Perl does not; the
63    Perl documentation says "Because Perl hides the need for the user to understand
64    the internal representation of Unicode characters, there is no need to
65    implement the somewhat messy concept of surrogates."
66  </P>  </P>
67  <P>  <P>
68  7. PCRE does support the \Q...\E escape for quoting substrings. Characters in  7. PCRE does support the \Q...\E escape for quoting substrings. Characters in
# Line 79  The \Q...\E sequence is recognized both Line 82  The \Q...\E sequence is recognized both
82  <P>  <P>
83  8. Fairly obviously, PCRE does not support the (?{code}) and (??{code})  8. Fairly obviously, PCRE does not support the (?{code}) and (??{code})
84  constructions. However, there is support for recursive patterns. This is not  constructions. However, there is support for recursive patterns. This is not
85  available in Perl 5.8, but will be in Perl 5.10. Also, the PCRE "callout"  available in Perl 5.8, but it is in Perl 5.10. Also, the PCRE "callout"
86  feature allows an external function to be called during pattern matching. See  feature allows an external function to be called during pattern matching. See
87  the  the
88  <a href="pcrecallout.html"><b>pcrecallout</b></a>  <a href="pcrecallout.html"><b>pcrecallout</b></a>
# Line 87  documentation for details. Line 90  documentation for details.
90  </P>  </P>
91  <P>  <P>
92  9. Subpatterns that are called recursively or as "subroutines" are always  9. Subpatterns that are called recursively or as "subroutines" are always
93  treated as atomic groups in PCRE. This is like Python, but unlike Perl.  treated as atomic groups in PCRE. This is like Python, but unlike Perl. There
94    is a discussion of an example that explains this in more detail in the
95    <a href="pcrepattern.html#recursiondifference">section on recursion differences from Perl</a>
96    in the
97    <a href="pcrecompat.html"><b>pcrecompat</b></a>
98    page.
99  </P>  </P>
100  <P>  <P>
101  10. There are some differences that are concerned with the settings of captured  10. There are some differences that are concerned with the settings of captured
# Line 97  the pattern /^(a(b)?)+$/ in Perl leaves Line 105  the pattern /^(a(b)?)+$/ in Perl leaves
105  <P>  <P>
106  11. PCRE does support Perl 5.10's backtracking verbs (*ACCEPT), (*FAIL), (*F),  11. PCRE does support Perl 5.10's backtracking verbs (*ACCEPT), (*FAIL), (*F),
107  (*COMMIT), (*PRUNE), (*SKIP), and (*THEN), but only in the forms without an  (*COMMIT), (*PRUNE), (*SKIP), and (*THEN), but only in the forms without an
108  argument. PCRE does not support (*MARK). If (*ACCEPT) is within capturing  argument. PCRE does not support (*MARK).
 parentheses, PCRE does not set that capture group; this is different to Perl.  
109  </P>  </P>
110  <P>  <P>
111  12. PCRE provides some extensions to the Perl regular expression facilities.  12. PCRE provides some extensions to the Perl regular expression facilities.
# Line 130  question mark they are. Line 137  question mark they are.
137  only at the first matching position in the subject string.  only at the first matching position in the subject string.
138  <br>  <br>
139  <br>  <br>
140  (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
141  options for <b>pcre_exec()</b> have no Perl equivalents.  PCRE_NO_AUTO_CAPTURE options for <b>pcre_exec()</b> have no Perl equivalents.
142  <br>  <br>
143  <br>  <br>
144  (g) The \R escape sequence can be restricted to match only CR, LF, or CRLF  (g) The \R escape sequence can be restricted to match only CR, LF, or CRLF
# Line 170  Cambridge CB2 3QH, England. Line 177  Cambridge CB2 3QH, England.
177  REVISION  REVISION
178  </b><br>  </b><br>
179  <P>  <P>
180  Last updated: 25 August 2009  Last updated: 18 September 2009
181  <br>  <br>
182  Copyright &copy; 1997-2009 University of Cambridge.  Copyright &copy; 1997-2009 University of Cambridge.
183  <br>  <br>

Legend:
Removed from v.452  
changed lines
  Added in v.453

  ViewVC Help
Powered by ViewVC 1.1.5