89 |
.\" </a> |
.\" </a> |
90 |
"Newline sequences" |
"Newline sequences" |
91 |
.\" |
.\" |
92 |
below. A change of \eR setting can be combined with a change of newline |
below. A change of \eR setting can be combined with a change of newline |
93 |
convention. |
convention. |
94 |
. |
. |
95 |
. |
. |
427 |
.P |
.P |
428 |
It is possible to restrict \eR to match only CR, LF, or CRLF (instead of the |
It is possible to restrict \eR to match only CR, LF, or CRLF (instead of the |
429 |
complete set of Unicode line endings) by setting the option PCRE_BSR_ANYCRLF |
complete set of Unicode line endings) by setting the option PCRE_BSR_ANYCRLF |
430 |
either at compile time or when the pattern is matched. (BSR is an abbrevation |
either at compile time or when the pattern is matched. (BSR is an abbrevation |
431 |
for "backslash R".) This can be made the default when PCRE is built; if this is |
for "backslash R".) This can be made the default when PCRE is built; if this is |
432 |
the case, the other behaviour can be requested via the PCRE_BSR_UNICODE option. |
the case, the other behaviour can be requested via the PCRE_BSR_UNICODE option. |
433 |
It is also possible to specify these settings by starting a pattern string with |
It is also possible to specify these settings by starting a pattern string with |
440 |
they can be overridden by options given to \fBpcre_exec()\fP. Note that these |
they can be overridden by options given to \fBpcre_exec()\fP. Note that these |
441 |
special settings, which are not Perl-compatible, are recognized only at the |
special settings, which are not Perl-compatible, are recognized only at the |
442 |
very start of a pattern, and that they must be in upper case. If more than one |
very start of a pattern, and that they must be in upper case. If more than one |
443 |
of them is present, the last one is used. They can be combined with a change of |
of them is present, the last one is used. They can be combined with a change of |
444 |
newline convention, for example, a pattern can start with: |
newline convention, for example, a pattern can start with: |
445 |
.sp |
.sp |
446 |
(*ANY)(*BSR_ANYCRLF) |
(*ANY)(*BSR_ANYCRLF) |