3 PCRE - Perl-compatible regular expressions
11 .B pcre *pcre_compile(const char *\fIpattern\fP, int \fIoptions\fP,
13 .B const char **\fIerrptr\fP, int *\fIerroffset\fP,
15 .B const unsigned char *\fItableptr\fP);
20 This function compiles a regular expression into an internal form. Its
23 \fIpattern\fR A zero-terminated string containing the
24 regular expression to be compiled
25 \fIoptions\fR Zero or more option bits
26 \fIerrptr\fR Where to put an error message
27 \fIerroffset\fR Offset in pattern where error was found
28 \fItableptr\fR Pointer to character tables, or NULL to
29 use the built-in default
33 PCRE_ANCHORED Force pattern anchoring
34 PCRE_AUTO_CALLOUT Compile automatic callouts
35 PCRE_CASELESS Do caseless matching
36 PCRE_DOLLAR_ENDONLY $ not to match newline at end
37 PCRE_DOTALL . matches anything including NL
38 PCRE_EXTENDED Ignore whitespace and # comments
39 PCRE_EXTRA PCRE extra features
40 (not much use currently)
41 PCRE_MULTILINE ^ and $ match newlines within data
42 PCRE_NO_AUTO_CAPTURE Disable numbered capturing paren-
43 theses (named ones available)
44 PCRE_UNGREEDY Invert greediness of quantifiers
45 PCRE_UTF8 Run in UTF-8 mode
46 PCRE_NO_UTF8_CHECK Do not check the pattern for UTF-8
47 validity (only relevant if
50 PCRE must be built with UTF-8 support in order to use PCRE_UTF8 and
53 The yield of the function is a pointer to a private data structure that
54 contains the compiled pattern, or NULL if an error was detected.
56 There is a complete description of the PCRE native API in the
60 page and a description of the POSIX API in the