219 |
If any call to \fBpcre_exec()\fP in a \fB/g\fP or \fB/G\fP sequence matches an |
If any call to \fBpcre_exec()\fP in a \fB/g\fP or \fB/G\fP sequence matches an |
220 |
empty string, the next call is done with the PCRE_NOTEMPTY_ATSTART and |
empty string, the next call is done with the PCRE_NOTEMPTY_ATSTART and |
221 |
PCRE_ANCHORED flags set in order to search for another, non-empty, match at the |
PCRE_ANCHORED flags set in order to search for another, non-empty, match at the |
222 |
same point. If this second match fails, the start offset is advanced by one |
same point. If this second match fails, the start offset is advanced, and the |
223 |
character, and the normal match is retried. This imitates the way Perl handles |
normal match is retried. This imitates the way Perl handles such cases when |
224 |
such cases when using the \fB/g\fP modifier or the \fBsplit()\fP function. |
using the \fB/g\fP modifier or the \fBsplit()\fP function. Normally, the start |
225 |
|
offset is advanced by one character, but if the newline convention recognizes |
226 |
|
CRLF as a newline, and the current character is CR followed by LF, an advance |
227 |
|
of two is used. |
228 |
. |
. |
229 |
. |
. |
230 |
.SS "Other modifiers" |
.SS "Other modifiers" |
770 |
.rs |
.rs |
771 |
.sp |
.sp |
772 |
.nf |
.nf |
773 |
Last updated: 22 October 2010 |
Last updated: 01 November 2010 |
774 |
Copyright (c) 1997-2010 University of Cambridge. |
Copyright (c) 1997-2010 University of Cambridge. |
775 |
.fi |
.fi |