| 80 |
The PCRE_MULTILINE option is set when the expression is |
The PCRE_MULTILINE option is set when the expression is |
| 81 |
passed for compilation to the native function. |
passed for compilation to the native function. |
| 82 |
|
|
| 83 |
|
In the absence of these flags, no options are passed to the |
| 84 |
|
native function. This means the the regex is compiled with |
| 85 |
|
PCRE default semantics. In particular, the way it handles |
| 86 |
|
newline characters in the subject string is the Perl way, |
| 87 |
|
not the POSIX way. Note that setting PCRE_MULTILINE has only |
| 88 |
|
some of the effects specified for REG_NEWLINE. It does not |
| 89 |
|
affect the way newlines are matched by . (they aren't) or a |
| 90 |
|
negative class such as [^a] (they are). |
| 91 |
|
|
| 92 |
The yield of regcomp() is zero on success, and non-zero oth- |
The yield of regcomp() is zero on success, and non-zero oth- |
| 93 |
erwise. The preg structure is filled in on success, and one |
erwise. The preg structure is filled in on success, and one |
| 94 |
member of the structure is publicized: re_nsub contains the |
member of the structure is publicized: re_nsub contains the |
| 156 |
Cambridge CB2 3QG, England. |
Cambridge CB2 3QG, England. |
| 157 |
Phone: +44 1223 334714 |
Phone: +44 1223 334714 |
| 158 |
|
|
| 159 |
Copyright (c) 1997-1999 University of Cambridge. |
Copyright (c) 1997-2000 University of Cambridge. |