961 |
Return a copy of the options with which the pattern was compiled. The fourth |
Return a copy of the options with which the pattern was compiled. The fourth |
962 |
argument should point to an <b>unsigned long int</b> variable. These option bits |
argument should point to an <b>unsigned long int</b> variable. These option bits |
963 |
are those specified in the call to <b>pcre_compile()</b>, modified by any |
are those specified in the call to <b>pcre_compile()</b>, modified by any |
964 |
top-level option settings within the pattern itself. |
top-level option settings at the start of the pattern itself. In other words, |
965 |
|
they are the options that will be in force when matching starts. For example, |
966 |
|
if the pattern /(?im)abc(?-i)d/ is compiled with the PCRE_EXTENDED option, the |
967 |
|
result is PCRE_CASELESS, PCRE_MULTILINE, and PCRE_EXTENDED. |
968 |
</P> |
</P> |
969 |
<P> |
<P> |
970 |
A pattern is automatically anchored by PCRE if all of its top-level |
A pattern is automatically anchored by PCRE if all of its top-level |
1487 |
field in a <b>pcre_extra</b> structure (or defaulted) was reached. See the |
field in a <b>pcre_extra</b> structure (or defaulted) was reached. See the |
1488 |
description above. |
description above. |
1489 |
<pre> |
<pre> |
|
PCRE_ERROR_NULLWSLIMIT (-22) |
|
|
</pre> |
|
|
When a group that can match an empty substring is repeated with an unbounded |
|
|
upper limit, the subject position at the start of the group must be remembered, |
|
|
so that a test for an empty string can be made when the end of the group is |
|
|
reached. Some workspace is required for this; if it runs out, this error is |
|
|
given. |
|
|
<pre> |
|
1490 |
PCRE_ERROR_BADNEWLINE (-23) |
PCRE_ERROR_BADNEWLINE (-23) |
1491 |
</pre> |
</pre> |
1492 |
An invalid combination of PCRE_NEWLINE_<i>xxx</i> options was given. |
An invalid combination of PCRE_NEWLINE_<i>xxx</i> options was given. |
1493 |
</P> |
</P> |
1494 |
<P> |
<P> |
1495 |
Error numbers -16 to -20 are not used by <b>pcre_exec()</b>. |
Error numbers -16 to -20 and -22 are not used by <b>pcre_exec()</b>. |
1496 |
</P> |
</P> |
1497 |
<br><a name="SEC15" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a><br> |
<br><a name="SEC15" href="#TOC1">EXTRACTING CAPTURED SUBSTRINGS BY NUMBER</a><br> |
1498 |
<P> |
<P> |
1871 |
</P> |
</P> |
1872 |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
1873 |
<P> |
<P> |
1874 |
Last updated: 13 June 2007 |
Last updated: 30 July 2007 |
1875 |
<br> |
<br> |
1876 |
Copyright © 1997-2007 University of Cambridge. |
Copyright © 1997-2007 University of Cambridge. |
1877 |
<br> |
<br> |