/[pcre]/code/trunk/doc/pcre_compile.3
ViewVC logotype

Diff of /code/trunk/doc/pcre_compile.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 77 by nigel, Sat Feb 24 21:40:45 2007 UTC revision 150 by ph10, Tue Apr 17 08:22:40 2007 UTC
# Line 1  Line 1 
1  .TH PCRE 3  .TH PCRE_COMPILE 3
2  .SH NAME  .SH NAME
3  PCRE - Perl-compatible regular expressions  PCRE - Perl-compatible regular expressions
4  .SH SYNOPSIS  .SH SYNOPSIS
# Line 7  PCRE - Perl-compatible regular expressio Line 7  PCRE - Perl-compatible regular expressio
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,
# Line 17  PCRE - Perl-compatible regular expressio Line 16  PCRE - Perl-compatible regular expressio
16  .SH DESCRIPTION  .SH DESCRIPTION
17  .rs  .rs
18  .sp  .sp
19  This function compiles a regular expression into an internal form. Its  This function compiles a regular expression into an internal form. It is the
20  arguments are:  same as \fBpcre_compile2()\fP, except for the absence of the \fIerrorcodeptr\fP
21    argument. Its arguments are:
22  .sp  .sp
23    \fIpattern\fR       A zero-terminated string containing the    \fIpattern\fR       A zero-terminated string containing the
24                    regular expression to be compiled                    regular expression to be compiled
# Line 35  The option bits are: Line 35  The option bits are:
35    PCRE_CASELESS         Do caseless matching    PCRE_CASELESS         Do caseless matching
36    PCRE_DOLLAR_ENDONLY   $ not to match newline at end    PCRE_DOLLAR_ENDONLY   $ not to match newline at end
37    PCRE_DOTALL           . matches anything including NL    PCRE_DOTALL           . matches anything including NL
38      PCRE_DUPNAMES         Allow duplicate names for subpatterns
39    PCRE_EXTENDED         Ignore whitespace and # comments    PCRE_EXTENDED         Ignore whitespace and # comments
40    PCRE_EXTRA            PCRE extra features    PCRE_EXTRA            PCRE extra features
41                            (not much use currently)                            (not much use currently)
42    PCRE_FIRSTLINE        Force matching to be before newline    PCRE_FIRSTLINE        Force matching to be before newline
43    PCRE_MULTILINE        ^ and $ match newlines within data    PCRE_MULTILINE        ^ and $ match newlines within data
44      PCRE_NEWLINE_ANY      Recognize any Unicode newline sequence
45      PCRE_NEWLINE_ANYCRLF  Recognize CR, LF, and CRLF as newline sequences
46      PCRE_NEWLINE_CR       Set CR as the newline sequence
47      PCRE_NEWLINE_CRLF     Set CRLF as the newline sequence
48      PCRE_NEWLINE_LF       Set LF as the newline sequence
49    PCRE_NO_AUTO_CAPTURE  Disable numbered capturing paren-    PCRE_NO_AUTO_CAPTURE  Disable numbered capturing paren-
50                            theses (named ones available)                            theses (named ones available)
51    PCRE_UNGREEDY         Invert greediness of quantifiers    PCRE_UNGREEDY         Invert greediness of quantifiers

Legend:
Removed from v.77  
changed lines
  Added in v.150

  ViewVC Help
Powered by ViewVC 1.1.5