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

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

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

revision 231 by ph10, Tue Sep 11 11:15:33 2007 UTC revision 259 by ph10, Wed Sep 19 09:52:44 2007 UTC
# Line 89  this can be changed; see the description Line 89  this can be changed; see the description
89  .\" </a>  .\" </a>
90  "Newline sequences"  "Newline sequences"
91  .\"  .\"
92  below.  below. A change of \eR setting can be combined with a change of newline
93    convention.
94  .  .
95  .  .
96  .SH "CHARACTERS AND METACHARACTERS"  .SH "CHARACTERS AND METACHARACTERS"
# Line 426  recognized. Line 427  recognized.
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. This can be made the  either at compile time or when the pattern is matched. (BSR is an abbrevation
431  default when PCRE is built; if this is the case, the other behaviour can be  for "backslash R".) This can be made the default when PCRE is built; if this is
432  requested via the PCRE_BSR_UNICODE option. It is also possible to specify these  the case, the other behaviour can be requested via the PCRE_BSR_UNICODE option.
433  settings by starting a pattern string with one of the following sequences:  It is also possible to specify these settings by starting a pattern string with
434    one of the following sequences:
435  .sp  .sp
436    (*BSR_ANYCRLF)   CR, LF, or CRLF only    (*BSR_ANYCRLF)   CR, LF, or CRLF only
437    (*BSR_UNICODE)   any Unicode newline sequence    (*BSR_UNICODE)   any Unicode newline sequence
# Line 438  These override the default and the optio Line 440  These override the default and the optio
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.  of them is present, the last one is used. They can be combined with a change of
444  .P  newline convention, for example, a pattern can start with:
445    .sp
446      (*ANY)(*BSR_ANYCRLF)
447    .sp
448  Inside a character class, \eR matches the letter "R".  Inside a character class, \eR matches the letter "R".
449  .  .
450  .  .
# Line 1029  matches "ab", "aB", "c", and "C", even t Line 1034  matches "ab", "aB", "c", and "C", even t
1034  branch is abandoned before the option setting. This is because the effects of  branch is abandoned before the option setting. This is because the effects of
1035  option settings happen at compile time. There would be some very weird  option settings happen at compile time. There would be some very weird
1036  behaviour otherwise.  behaviour otherwise.
1037    .P
1038    \fBNote:\fP There are other PCRE-specific options that can be set by the
1039    application when the compile or match functions are called. In some cases the
1040    pattern can contain special leading sequences to override what the application
1041    has set or what has been defaulted. Details are given in the section entitled
1042    .\" HTML <a href="#newlineseq">
1043    .\" </a>
1044    "Newline sequences"
1045    .\"
1046    above.
1047  .  .
1048  .  .
1049  .\" HTML <a name="subpattern"></a>  .\" HTML <a name="subpattern"></a>
# Line 2044  description of the interface to the call Line 2059  description of the interface to the call
2059  documentation.  documentation.
2060  .  .
2061  .  .
2062  .SH "BACTRACKING CONTROL"  .SH "BACKTRACKING CONTROL"
2063  .rs  .rs
2064  .sp  .sp
2065  Perl 5.10 introduced a number of "Special Backtracking Control Verbs", which  Perl 5.10 introduced a number of "Special Backtracking Control Verbs", which
# Line 2177  Cambridge CB2 3QH, England. Line 2192  Cambridge CB2 3QH, England.
2192  .rs  .rs
2193  .sp  .sp
2194  .nf  .nf
2195  Last updated: 11 September 2007  Last updated: 17 September 2007
2196  Copyright (c) 1997-2007 University of Cambridge.  Copyright (c) 1997-2007 University of Cambridge.
2197  .fi  .fi

Legend:
Removed from v.231  
changed lines
  Added in v.259

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12