[Python-checkins] cpython (2.7): #14155: add a note about \b.

ezio.melotti python-checkins at python.org
Sun Apr 29 03:53:28 CEST 2012


http://hg.python.org/cpython/rev/142297db28f1
changeset:   76600:142297db28f1
branch:      2.7
parent:      76595:707905b3f8df
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Apr 29 04:46:34 2012 +0300
summary:
  #14155: add a note about \b.

files:
  Doc/library/re.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -398,6 +398,9 @@
    \r      \t      \v      \x
    \\
 
+(Note that ``\b`` is used to represent word boundaries, and means "backspace"
+only inside character classes.)
+
 Octal escapes are included in a limited form: If the first digit is a 0, or if
 there are three octal digits, it is considered an octal escape. Otherwise, it is
 a group reference.  As for string literals, octal escapes are always at most

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list