| 87 |
constants whose names start with "REG_"; these are used for setting options and |
constants whose names start with "REG_"; these are used for setting options and |
| 88 |
identifying error codes. |
identifying error codes. |
| 89 |
</P> |
</P> |
|
<P> |
|
|
</P> |
|
| 90 |
<br><a name="SEC3" href="#TOC1">COMPILING A PATTERN</a><br> |
<br><a name="SEC3" href="#TOC1">COMPILING A PATTERN</a><br> |
| 91 |
<P> |
<P> |
| 92 |
The function <b>regcomp()</b> is called to compile a pattern into an |
The function <b>regcomp()</b> is called to compile a pattern into an |
| 124 |
<i>nmatch</i> and <i>pmatch</i> arguments are ignored, and no captured strings |
<i>nmatch</i> and <i>pmatch</i> arguments are ignored, and no captured strings |
| 125 |
are returned. |
are returned. |
| 126 |
<pre> |
<pre> |
| 127 |
|
REG_UCP |
| 128 |
|
</pre> |
| 129 |
|
The PCRE_UCP option is set when the regular expression is passed for |
| 130 |
|
compilation to the native function. This causes PCRE to use Unicode properties |
| 131 |
|
when matchine \d, \w, etc., instead of just recognizing ASCII values. Note |
| 132 |
|
that REG_UTF8 is not part of the POSIX standard. |
| 133 |
|
<pre> |
| 134 |
REG_UNGREEDY |
REG_UNGREEDY |
| 135 |
</pre> |
</pre> |
| 136 |
The PCRE_UNGREEDY option is set when the regular expression is passed for |
The PCRE_UNGREEDY option is set when the regular expression is passed for |
| 282 |
</P> |
</P> |
| 283 |
<br><a name="SEC9" href="#TOC1">REVISION</a><br> |
<br><a name="SEC9" href="#TOC1">REVISION</a><br> |
| 284 |
<P> |
<P> |
| 285 |
Last updated: 02 September 2009 |
Last updated: 16 May 2010 |
| 286 |
<br> |
<br> |
| 287 |
Copyright © 1997-2009 University of Cambridge. |
Copyright © 1997-2010 University of Cambridge. |
| 288 |
<br> |
<br> |
| 289 |
<p> |
<p> |
| 290 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |