/[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 1361 by ph10, Fri Sep 6 17:47:32 2013 UTC revision 1364 by ph10, Sat Oct 5 15:45:11 2013 UTC
# Line 1  Line 1 
1  .TH PCREPATTERN 3 "06 September 2013" "PCRE 8.34"  .TH PCREPATTERN 3 "05 October 2013" "PCRE 8.34"
2  .SH NAME  .SH NAME
3  PCRE - Perl-compatible regular expressions  PCRE - Perl-compatible regular expressions
4  .SH "PCRE REGULAR EXPRESSION DETAILS"  .SH "PCRE REGULAR EXPRESSION DETAILS"
# Line 494  classes. They each match one character o Line 494  classes. They each match one character o
494  matching point is at the end of the subject string, all of them fail, because  matching point is at the end of the subject string, all of them fail, because
495  there is no character to match.  there is no character to match.
496  .P  .P
497  For compatibility with Perl, \es does not match the VT character (code 11).  For compatibility with Perl, \es did not used to match the VT character (code
498  This makes it different from the the POSIX "space" class. The \es characters  11), which made it different from the the POSIX "space" class. However, Perl
499  are HT (9), LF (10), FF (12), CR (13), and space (32). If "use locale;" is  added VT at release 5.18, and PCRE followed suit at release 8.34. The \es
500  included in a Perl script, \es may match the VT character. In PCRE, it never  characters are now HT (9), LF (10), VT (11), FF (12), CR (13), and space (32).
 does.  
501  .P  .P
502  A "word" character is an underscore or any character that is a letter or digit.  A "word" character is an underscore or any character that is a letter or digit.
503  By default, the definition of letters and digits is controlled by PCRE's  By default, the definition of letters and digits is controlled by PCRE's
# Line 1296  are: Line 1295  are:
1295    xdigit   hexadecimal digits    xdigit   hexadecimal digits
1296  .sp  .sp
1297  The "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), and  The "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), and
1298  space (32). Notice that this list includes the VT character (code 11). This  space (32). "Space" used to be different to \es, which did not include VT, for
1299  makes "space" different to \es, which does not include VT (for Perl  Perl compatibility. However, Perl changed at release 5.18, and PCRE followed at
1300  compatibility).  release 8.34. "Space" and \es now match the same set of characters.
1301  .P  .P
1302  The name "word" is a Perl extension, and "blank" is a GNU extension from Perl  The name "word" is a Perl extension, and "blank" is a GNU extension from Perl
1303  5.8. Another Perl extension is negation, which is indicated by a ^ character  5.8. Another Perl extension is negation, which is indicated by a ^ character
# Line 3157  Cambridge CB2 3QH, England. Line 3156  Cambridge CB2 3QH, England.
3156  .rs  .rs
3157  .sp  .sp
3158  .nf  .nf
3159  Last updated: 06 September 2013  Last updated: 05 October 2013
3160  Copyright (c) 1997-2013 University of Cambridge.  Copyright (c) 1997-2013 University of Cambridge.
3161  .fi  .fi

Legend:
Removed from v.1361  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC 1.1.5