| 24 |
<P> |
<P> |
| 25 |
The PCRE library is a set of functions that implement regular expression |
The PCRE library is a set of functions that implement regular expression |
| 26 |
pattern matching using the same syntax and semantics as Perl, with just a few |
pattern matching using the same syntax and semantics as Perl, with just a few |
| 27 |
differences. Certain features that appeared in Python and PCRE before they |
differences. Some features that appeared in Python and PCRE before they |
| 28 |
appeared in Perl are also available using the Python syntax. There is also some |
appeared in Perl are also available using the Python syntax, there is some |
| 29 |
support for certain .NET and Oniguruma syntax items, and there is an option for |
support for one or two .NET and Oniguruma syntax items, and there is an option |
| 30 |
requesting some minor changes that give better JavaScript compatibility. |
for requesting some minor changes that give better JavaScript compatibility. |
| 31 |
</P> |
</P> |
| 32 |
<P> |
<P> |
| 33 |
The current implementation of PCRE (release 8.xx) corresponds approximately |
The current implementation of PCRE corresponds approximately with Perl 5.10, |
| 34 |
with Perl 5.10, including support for UTF-8 encoded strings and Unicode general |
including support for UTF-8 encoded strings and Unicode general category |
| 35 |
category properties. However, UTF-8 and Unicode support has to be explicitly |
properties. However, UTF-8 and Unicode support has to be explicitly enabled; it |
| 36 |
enabled; it is not the default. The Unicode tables correspond to Unicode |
is not the default. The Unicode tables correspond to Unicode release 5.1. |
|
release 5.1. |
|
| 37 |
</P> |
</P> |
| 38 |
<P> |
<P> |
| 39 |
In addition to the Perl-compatible matching function, PCRE contains an |
In addition to the Perl-compatible matching function, PCRE contains an |
| 40 |
alternative matching function that matches the same compiled patterns in a |
alternative function that matches the same compiled patterns in a different |
| 41 |
different way. In certain circumstances, the alternative function has some |
way. In certain circumstances, the alternative function has some advantages. |
| 42 |
advantages. For a discussion of the two matching algorithms, see the |
For a discussion of the two matching algorithms, see the |
| 43 |
<a href="pcrematching.html"><b>pcrematching</b></a> |
<a href="pcrematching.html"><b>pcrematching</b></a> |
| 44 |
page. |
page. |
| 45 |
</P> |
</P> |
| 71 |
available. The features themselves are described in the |
available. The features themselves are described in the |
| 72 |
<a href="pcrebuild.html"><b>pcrebuild</b></a> |
<a href="pcrebuild.html"><b>pcrebuild</b></a> |
| 73 |
page. Documentation about building PCRE for various operating systems can be |
page. Documentation about building PCRE for various operating systems can be |
| 74 |
found in the <b>README</b> file in the source distribution. |
found in the <b>README</b> and <b>NON-UNIX-USE</b> files in the source |
| 75 |
|
distribution. |
| 76 |
</P> |
</P> |
| 77 |
<P> |
<P> |
| 78 |
The library contains a number of undocumented internal functions and data |
The library contains a number of undocumented internal functions and data |
| 103 |
pcrematching discussion of the two matching algorithms |
pcrematching discussion of the two matching algorithms |
| 104 |
pcrepartial details of the partial matching facility |
pcrepartial details of the partial matching facility |
| 105 |
pcrepattern syntax and semantics of supported regular expressions |
pcrepattern syntax and semantics of supported regular expressions |
|
pcresyntax quick syntax reference |
|
| 106 |
pcreperform discussion of performance issues |
pcreperform discussion of performance issues |
| 107 |
pcreposix the POSIX-compatible C API |
pcreposix the POSIX-compatible C API |
| 108 |
pcreprecompile details of saving and re-using precompiled patterns |
pcreprecompile details of saving and re-using precompiled patterns |
| 109 |
pcresample discussion of the pcredemo program |
pcresample discussion of the pcredemo program |
| 110 |
pcrestack discussion of stack usage |
pcrestack discussion of stack usage |
| 111 |
|
pcresyntax quick syntax reference |
| 112 |
pcretest description of the <b>pcretest</b> testing command |
pcretest description of the <b>pcretest</b> testing command |
| 113 |
</pre> |
</pre> |
| 114 |
In addition, in the "man" and HTML formats, there is a short page for each |
In addition, in the "man" and HTML formats, there is a short page for each |
| 164 |
with the PCRE_UTF8 option flag, or the pattern must start with the sequence |
with the PCRE_UTF8 option flag, or the pattern must start with the sequence |
| 165 |
(*UTF8). When either of these is the case, both the pattern and any subject |
(*UTF8). When either of these is the case, both the pattern and any subject |
| 166 |
strings that are matched against it are treated as UTF-8 strings instead of |
strings that are matched against it are treated as UTF-8 strings instead of |
| 167 |
just strings of bytes. |
strings of 1-byte characters. |
| 168 |
</P> |
</P> |
| 169 |
<P> |
<P> |
| 170 |
If you compile PCRE with UTF-8 support, but do not use it at run time, the |
If you compile PCRE with UTF-8 support, but do not use it at run time, the |
| 298 |
</P> |
</P> |
| 299 |
<br><a name="SEC6" href="#TOC1">REVISION</a><br> |
<br><a name="SEC6" href="#TOC1">REVISION</a><br> |
| 300 |
<P> |
<P> |
| 301 |
Last updated: 01 September 2009 |
Last updated: 28 September 2009 |
| 302 |
<br> |
<br> |
| 303 |
Copyright © 1997-2009 University of Cambridge. |
Copyright © 1997-2009 University of Cambridge. |
| 304 |
<br> |
<br> |