1 |
.TH PCREPATTERN 3 "12 November 2013" "PCRE 8.34" |
.TH PCREPATTERN 3 "25 November 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" |
536 |
added VT at release 5.18, and PCRE followed suit at release 8.34. The default |
added VT at release 5.18, and PCRE followed suit at release 8.34. The default |
537 |
\es characters are now HT (9), LF (10), VT (11), FF (12), CR (13), and space |
\es characters are now HT (9), LF (10), VT (11), FF (12), CR (13), and space |
538 |
(32), which are defined as white space in the "C" locale. This list may vary if |
(32), which are defined as white space in the "C" locale. This list may vary if |
539 |
locale-specific matching is taking place; in particular, in some locales the |
locale-specific matching is taking place. For example, in some locales the |
540 |
"non-breaking space" character (\exA0) is recognized as white space. |
"non-breaking space" character (\exA0) is recognized as white space, and in |
541 |
|
others the VT character is not. |
542 |
.P |
.P |
543 |
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. |
544 |
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 |
1346 |
xdigit hexadecimal digits |
xdigit hexadecimal digits |
1347 |
.sp |
.sp |
1348 |
The default "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), |
The default "space" characters are HT (9), LF (10), VT (11), FF (12), CR (13), |
1349 |
and space (32). If locale-specific matching is taking place, there may be |
and space (32). If locale-specific matching is taking place, the list of space |
1350 |
additional space characters. "Space" used to be different to \es, which did not |
characters may be different; there may be fewer or more of them. "Space" used |
1351 |
include VT, for Perl compatibility. However, Perl changed at release 5.18, and |
to be different to \es, which did not include VT, for Perl compatibility. |
1352 |
PCRE followed at release 8.34. "Space" and \es now match the same set of |
However, Perl changed at release 5.18, and PCRE followed at release 8.34. |
1353 |
characters. |
"Space" and \es now match the same set of characters. |
1354 |
.P |
.P |
1355 |
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 |
1356 |
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 |
3231 |
.rs |
.rs |
3232 |
.sp |
.sp |
3233 |
.nf |
.nf |
3234 |
Last updated: 12 November 2013 |
Last updated: 25 November 2013 |
3235 |
Copyright (c) 1997-2013 University of Cambridge. |
Copyright (c) 1997-2013 University of Cambridge. |
3236 |
.fi |
.fi |