[Doc-SIG] Re: [Python-Dev] Documentation inconsistency in re
Fri, 6 Sep 2002 08:47:12 +0200
Christopher A. Craig wrote:
> >From the Library Reference (2.2.1):
> \b Matches the empty string, but only at the beginning or end of a
> word. A word is defined as a sequence of alphanumeric characters, so
> the end of a word is indicated by whitespace or a non-alphanumeric
> character. Inside a character range, \b represents the backspace
> character, for compatibility with Python's string literals.
as you suspected, the documentation is flawed: \b is defined
in terms of \w and \W.