diff options
author | Skip Montanaro <skip@pobox.com> | 2002-09-07 18:48:14 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-09-07 18:48:14 (GMT) |
commit | 2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe (patch) | |
tree | 7ebb578d943d4d2c000ac293b358b37d607e6ae6 /Doc/lib | |
parent | 522076d1d6013e89cb11b09442f7bb4a7dbc68eb (diff) | |
download | cpython-2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe.zip cpython-2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe.tar.gz cpython-2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe.tar.bz2 |
tightened up the definition of \b and \B some more based upon discussion
after the last checkin.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libre.tex | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 211b04f..97d08a1 100644 --- a/Doc/lib/libre.tex +++ b/Doc/lib/libre.tex @@ -322,13 +322,17 @@ escapes are treated as characters. \item[\code{\e b}] Matches the empty string, but only at the beginning or end of a word. A word is defined as a sequence of -alphanumeric or underscore characters , so the end of a word is indicated by -whitespace or a non-alphanumeric, non-underscore character. Inside a character range, -\regexp{\e b} represents the backspace character, for compatibility with -Python's string literals. - -\item[\code{\e B}] Matches the empty string, but only when it is -\emph{not} at the beginning or end of a word. +alphanumeric or underscore characters, so the end of a word is indicated by +whitespace or a non-alphanumeric, non-underscore character. Note that +{}\code{\e b} is defined as the boundary between \code{\e w} and \code{\e +W}, so the precise set of characters deemed to be alphanumeric depends on the +values of the \code{UNICODE} and \code{LOCALE} flags. Inside a character +range, \regexp{\e b} represents the backspace character, for compatibility +with Python's string literals. + +\item[\code{\e B}] Matches the empty string, but only when it is \emph{not} +at the beginning or end of a word. This is just the opposite of {}\code{\e +b}, so is also subject to the settings of \code{LOCALE} and \code{UNICODE}. \item[\code{\e d}]Matches any decimal digit; this is equivalent to the set \regexp{[0-9]}. |