| 45 |
POSIX interface often use it, this makes it easier to slot in PCRE as a |
POSIX interface often use it, this makes it easier to slot in PCRE as a |
| 46 |
replacement library. Other POSIX options are not even defined. |
replacement library. Other POSIX options are not even defined. |
| 47 |
.P |
.P |
| 48 |
|
There are also some other options that are not defined by POSIX. These have |
| 49 |
|
been added at the request of users who want to make use of certain |
| 50 |
|
PCRE-specific features via the POSIX calling interface. |
| 51 |
|
.P |
| 52 |
When PCRE is called via these functions, it is only the API that is POSIX-like |
When PCRE is called via these functions, it is only the API that is POSIX-like |
| 53 |
in style. The syntax and semantics of the regular expressions themselves are |
in style. The syntax and semantics of the regular expressions themselves are |
| 54 |
still those of Perl, subject to the setting of various PCRE options, as |
still those of Perl, subject to the setting of various PCRE options, as |
| 101 |
\fInmatch\fP and \fIpmatch\fP arguments are ignored, and no captured strings |
\fInmatch\fP and \fIpmatch\fP arguments are ignored, and no captured strings |
| 102 |
are returned. |
are returned. |
| 103 |
.sp |
.sp |
| 104 |
|
REG_UNGREEDY |
| 105 |
|
.sp |
| 106 |
|
The PCRE_UNGREEDY option is set when the regular expression is passed for |
| 107 |
|
compilation to the native function. Note that REG_UNGREEDY is not part of the |
| 108 |
|
POSIX standard. |
| 109 |
|
.sp |
| 110 |
REG_UTF8 |
REG_UTF8 |
| 111 |
.sp |
.sp |
| 112 |
The PCRE_UTF8 option is set when the regular expression is passed for |
The PCRE_UTF8 option is set when the regular expression is passed for |
| 119 |
particular, the way it handles newline characters in the subject string is the |
particular, the way it handles newline characters in the subject string is the |
| 120 |
Perl way, not the POSIX way. Note that setting PCRE_MULTILINE has only |
Perl way, not the POSIX way. Note that setting PCRE_MULTILINE has only |
| 121 |
\fIsome\fP of the effects specified for REG_NEWLINE. It does not affect the way |
\fIsome\fP of the effects specified for REG_NEWLINE. It does not affect the way |
| 122 |
newlines are matched by . (they aren't) or by a negative class such as [^a] |
newlines are matched by . (they are not) or by a negative class such as [^a] |
| 123 |
(they are). |
(they are). |
| 124 |
.P |
.P |
| 125 |
The yield of \fBregcomp()\fP is zero on success, and non-zero otherwise. The |
The yield of \fBregcomp()\fP is zero on success, and non-zero otherwise. The |
| 253 |
.rs |
.rs |
| 254 |
.sp |
.sp |
| 255 |
.nf |
.nf |
| 256 |
Last updated: 15 August 2009 |
Last updated: 02 September 2009 |
| 257 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
| 258 |
.fi |
.fi |