/[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 1391 by ph10, Wed Nov 6 16:43:07 2013 UTC revision 1392 by ph10, Wed Nov 6 18:00:09 2013 UTC
# Line 1235  The minus (hyphen) character can be used Line 1235  The minus (hyphen) character can be used
1235  character class. For example, [d-m] matches any letter between d and m,  character class. For example, [d-m] matches any letter between d and m,
1236  inclusive. If a minus character is required in a class, it must be escaped with  inclusive. If a minus character is required in a class, it must be escaped with
1237  a backslash or appear in a position where it cannot be interpreted as  a backslash or appear in a position where it cannot be interpreted as
1238  indicating a range, typically as the first or last character in the class.  indicating a range, typically as the first or last character in the class, or
1239    immediately after a range. For example, [b-d-z] matches letters in the range b
1240    to d, a hyphen character, or z.
1241  .P  .P
1242  It is not possible to have the literal character "]" as the end character of a  It is not possible to have the literal character "]" as the end character of a
1243  range. A pattern such as [W-]46] is interpreted as a class of two characters  range. A pattern such as [W-]46] is interpreted as a class of two characters
# Line 1245  the end of range, so [W-\e]46] is interp Line 1247  the end of range, so [W-\e]46] is interp
1247  followed by two other characters. The octal or hexadecimal representation of  followed by two other characters. The octal or hexadecimal representation of
1248  "]" can also be used to end a range.  "]" can also be used to end a range.
1249  .P  .P
1250    An error is generated if a POSIX character class (see below) or an escape
1251    sequence other than one that defines a single character appears at a point
1252    where a range ending character is expected. For example, [z-\exff] is valid,
1253    but [A-\ed] and [A-[:digit:]] are not.
1254    .P
1255  Ranges operate in the collating sequence of character values. They can also be  Ranges operate in the collating sequence of character values. They can also be
1256  used for characters specified numerically, for example [\e000-\e037]. Ranges  used for characters specified numerically, for example [\e000-\e037]. Ranges
1257  can include any characters that are valid for the current mode.  can include any characters that are valid for the current mode.

Legend:
Removed from v.1391  
changed lines
  Added in v.1392

  ViewVC Help
Powered by ViewVC 1.1.5