| 7 |
.B #include <pcre.h> |
.B #include <pcre.h> |
| 8 |
.PP |
.PP |
| 9 |
.SM |
.SM |
|
.br |
|
| 10 |
.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
.B int pcre_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP," |
| 11 |
.ti +5n |
.ti +5n |
| 12 |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
.B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP, |
| 34 |
The options are: |
The options are: |
| 35 |
.sp |
.sp |
| 36 |
PCRE_ANCHORED Match only at the first position |
PCRE_ANCHORED Match only at the first position |
| 37 |
|
PCRE_BSR_ANYCRLF \eR matches only CR, LF, or CRLF |
| 38 |
|
PCRE_BSR_UNICODE \eR matches all Unicode line endings |
| 39 |
|
PCRE_NEWLINE_ANY Recognize any Unicode newline sequence |
| 40 |
|
PCRE_NEWLINE_ANYCRLF Recognize CR, LF, and CRLF as newline sequences |
| 41 |
PCRE_NEWLINE_CR Set CR as the newline sequence |
PCRE_NEWLINE_CR Set CR as the newline sequence |
| 42 |
PCRE_NEWLINE_CRLF Set CRLF as the newline sequence |
PCRE_NEWLINE_CRLF Set CRLF as the newline sequence |
| 43 |
PCRE_NEWLINE_LF Set LF as the newline sequence |
PCRE_NEWLINE_LF Set LF as the newline sequence |
| 50 |
PCRE_PARTIAL Return PCRE_ERROR_PARTIAL for a partial match |
PCRE_PARTIAL Return PCRE_ERROR_PARTIAL for a partial match |
| 51 |
.sp |
.sp |
| 52 |
There are restrictions on what may appear in a pattern when partial matching is |
There are restrictions on what may appear in a pattern when partial matching is |
| 53 |
requested. |
requested. For details, see the |
| 54 |
|
.\" HREF |
| 55 |
|
\fBpcrepartial\fP |
| 56 |
|
.\" |
| 57 |
|
page. |
| 58 |
.P |
.P |
| 59 |
A \fBpcre_extra\fP structure contains the following fields: |
A \fBpcre_extra\fP structure contains the following fields: |
| 60 |
.sp |
.sp |