| 7 |
.B #include <pcre.h> |
.B #include <pcre.h> |
| 8 |
.PP |
.PP |
| 9 |
.SM |
.SM |
|
.br |
|
| 10 |
.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP, |
.B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP, |
| 11 |
.ti +5n |
.ti +5n |
| 12 |
.B const char **\fIerrptr\fP, int *\fIerroffset\fP, |
.B const char **\fIerrptr\fP, int *\fIerroffset\fP, |
| 32 |
.sp |
.sp |
| 33 |
PCRE_ANCHORED Force pattern anchoring |
PCRE_ANCHORED Force pattern anchoring |
| 34 |
PCRE_AUTO_CALLOUT Compile automatic callouts |
PCRE_AUTO_CALLOUT Compile automatic callouts |
| 35 |
|
PCRE_BSR_ANYCRLF \eR matches only CR, LF, or CRLF |
| 36 |
|
PCRE_BSR_UNICODE \eR matches all Unicode line endings |
| 37 |
PCRE_CASELESS Do caseless matching |
PCRE_CASELESS Do caseless matching |
| 38 |
PCRE_DOLLAR_ENDONLY $ not to match newline at end |
PCRE_DOLLAR_ENDONLY $ not to match newline at end |
| 39 |
PCRE_DOTALL . matches anything including NL |
PCRE_DOTALL . matches anything including NL |
| 44 |
PCRE_FIRSTLINE Force matching to be before newline |
PCRE_FIRSTLINE Force matching to be before newline |
| 45 |
PCRE_MULTILINE ^ and $ match newlines within data |
PCRE_MULTILINE ^ and $ match newlines within data |
| 46 |
PCRE_NEWLINE_ANY Recognize any Unicode newline sequence |
PCRE_NEWLINE_ANY Recognize any Unicode newline sequence |
| 47 |
|
PCRE_NEWLINE_ANYCRLF Recognize CR, LF, and CRLF as newline sequences |
| 48 |
PCRE_NEWLINE_CR Set CR as the newline sequence |
PCRE_NEWLINE_CR Set CR as the newline sequence |
| 49 |
PCRE_NEWLINE_CRLF Set CRLF as the newline sequence |
PCRE_NEWLINE_CRLF Set CRLF as the newline sequence |
| 50 |
PCRE_NEWLINE_LF Set LF as the newline sequence |
PCRE_NEWLINE_LF Set LF as the newline sequence |
| 60 |
PCRE_NO_UTF8_CHECK. |
PCRE_NO_UTF8_CHECK. |
| 61 |
.P |
.P |
| 62 |
The yield of the function is a pointer to a private data structure that |
The yield of the function is a pointer to a private data structure that |
| 63 |
contains the compiled pattern, or NULL if an error was detected. |
contains the compiled pattern, or NULL if an error was detected. Note that |
| 64 |
|
compiling regular expressions with one version of PCRE for use with a different |
| 65 |
|
version is not guaranteed to work and may cause crashes. |
| 66 |
.P |
.P |
| 67 |
There is a complete description of the PCRE native API in the |
There is a complete description of the PCRE native API in the |
| 68 |
.\" HREF |
.\" HREF |