[Python-checkins] cpython (3.3): Fix example in backreference description. Found by Alexander Heger on docs at .
georg.brandl
python-checkins at python.org
Sun Oct 6 12:57:42 CEST 2013
http://hg.python.org/cpython/rev/bcc837f8b640
changeset: 86070:bcc837f8b640
branch: 3.3
parent: 86068:ef0b7d9a1bbf
user: Georg Brandl <georg at python.org>
date: Sun Oct 06 12:58:20 2013 +0200
summary:
Fix example in backreference description. Found by Alexander Heger on docs at .
files:
Doc/library/re.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -327,7 +327,7 @@
``\number``
Matches the contents of the group of the same number. Groups are numbered
starting from 1. For example, ``(.+) \1`` matches ``'the the'`` or ``'55 55'``,
- but not ``'the end'`` (note the space after the group). This special sequence
+ but not ``'thethe'`` (note the space after the group). This special sequence
can only be used to match one of the first 99 groups. If the first digit of
*number* is 0, or *number* is 3 octal digits long, it will not be interpreted as
a group match, but as the character with octal value *number*. Inside the
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list