summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 10:58:20 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 10:58:20 (GMT)
commit2070e83f28008e0110f3caf021e129ecb3b33558 (patch)
treef1c11fddcb3423b4c431ddadb1dc1e27e09b27ec
parenta0b792354e85593f0a0186b107026716c4a625dc (diff)
downloadcpython-2070e83f28008e0110f3caf021e129ecb3b33558.zip
cpython-2070e83f28008e0110f3caf021e129ecb3b33558.tar.gz
cpython-2070e83f28008e0110f3caf021e129ecb3b33558.tar.bz2
Fix example in backreference description. Found by Alexander Heger on docs@.
-rw-r--r--Doc/library/re.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 1421f35..762ca49 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -327,7 +327,7 @@ the second character. For example, ``\$`` matches the character ``'$'``.
``\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