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. Certain features that appeared in Python and PCRE before they |
28 |
appeared in Perl are also available using the Python syntax.) |
appeared in Perl are also available using the Python syntax. There is also some |
29 |
|
support for certain .NET and Oniguruma syntax items, and there is an option for |
30 |
|
requesting some minor changes that give better JavaScript compatibility. |
31 |
</P> |
</P> |
32 |
<P> |
<P> |
33 |
The current implementation of PCRE (release 7.x) corresponds approximately with |
The current implementation of PCRE (release 7.x) corresponds approximately with |
258 |
values less than 256. This remains true even when PCRE includes Unicode |
values less than 256. This remains true even when PCRE includes Unicode |
259 |
property support, because to do otherwise would slow down PCRE in many common |
property support, because to do otherwise would slow down PCRE in many common |
260 |
cases. If you really want to test for a wider sense of, say, "digit", you |
cases. If you really want to test for a wider sense of, say, "digit", you |
261 |
must use Unicode property tests such as \p{Nd}. |
must use Unicode property tests such as \p{Nd}. Note that this also applies to |
262 |
|
\b, because it is defined in terms of \w and \W. |
263 |
</P> |
</P> |
264 |
<P> |
<P> |
265 |
7. Similarly, characters that match the POSIX named character classes are all |
7. Similarly, characters that match the POSIX named character classes are all |
296 |
</P> |
</P> |
297 |
<br><a name="SEC6" href="#TOC1">REVISION</a><br> |
<br><a name="SEC6" href="#TOC1">REVISION</a><br> |
298 |
<P> |
<P> |
299 |
Last updated: 09 August 2007 |
Last updated: 18 March 2009 |
300 |
<br> |
<br> |
301 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2009 University of Cambridge. |
302 |
<br> |
<br> |
303 |
<p> |
<p> |
304 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |