/[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 574 by ph10, Sat Nov 20 17:47:27 2010 UTC revision 575 by ph10, Sun Nov 21 12:55:42 2010 UTC
# Line 1052  characters in both cases. In UTF-8 mode, Line 1052  characters in both cases. In UTF-8 mode,
1052  characters with values greater than 128 only when it is compiled with Unicode  characters with values greater than 128 only when it is compiled with Unicode
1053  property support.  property support.
1054  .P  .P
1055  The character types \ed, \eD, \eh, \eH, \ep, \eP, \es, \eS, \ev, \eV, \ew, and  The character escape sequences \ed, \eD, \eh, \eH, \ep, \eP, \es, \eS, \ev,
1056  \eW may also appear in a character class, and add the characters that they  \eV, \ew, and \eW may appear in a character class, and add the characters that
1057  match to the class. For example, [\edABCDEF] matches any hexadecimal digit. A  they match to the class. For example, [\edABCDEF] matches any hexadecimal
1058  circumflex can conveniently be used with the upper case character types to  digit. In UTF-8 mode, the PCRE_UCP option affects the meanings of \ed, \es, \ew
1059    and their upper case partners, just as it does when they appear outside a
1060    character class, as described in the section entitled
1061    .\" HTML <a href="#genericchartypes">
1062    .\" </a>
1063    "Generic character types"
1064    .\"
1065    above. The escape sequence \eb has a different meaning inside a character
1066    class; it matches the backspace character. The sequences \eB, \eN, \eR, and \eX
1067    are not special inside a character class. Like any other unrecognized escape
1068    sequences, they are treated as the literal characters "B", "N", "R", and "X" by
1069    default, but cause an error if the PCRE_EXTRA option is set.
1070    .P
1071    A circumflex can conveniently be used with the upper case character types to
1072  specify a more restricted set of characters than the matching lower case type.  specify a more restricted set of characters than the matching lower case type.
1073  For example, the class [^\eW_] matches any letter or digit, but not underscore.  For example, the class [^\eW_] matches any letter or digit, but not underscore,
1074    whereas [\ew] includes underscore. A positive character class should be read as
1075    "something OR something OR ..." and a negative class as "NOT something AND NOT
1076    something AND NOT ...".
1077  .P  .P
1078  The only metacharacters that are recognized in character classes are backslash,  The only metacharacters that are recognized in character classes are backslash,
1079  hyphen (only where it can be interpreted as specifying a range), circumflex  hyphen (only where it can be interpreted as specifying a range), circumflex
# Line 2726  Cambridge CB2 3QH, England. Line 2742  Cambridge CB2 3QH, England.
2742  .rs  .rs
2743  .sp  .sp
2744  .nf  .nf
2745  Last updated: 20 November 2010  Last updated: 21 November 2010
2746  Copyright (c) 1997-2010 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
2747  .fi  .fi

Legend:
Removed from v.574  
changed lines
  Added in v.575

  ViewVC Help
Powered by ViewVC 1.1.5