Some cleanup in the docs.
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index dae765e..850e1f8 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -84,8 +84,6 @@
The special characters are:
-.. %
-
``'.'``
(Dot.) In the default mode, this matches any character except a newline. If
the :const:`DOTALL` flag has been specified, this matches any character
@@ -298,8 +296,6 @@
If the ordinary character is not on the list, then the resulting RE will match
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'``,
@@ -385,9 +381,6 @@
a group reference. As for string literals, octal escapes are always at most
three digits in length.
-.. % Note the lack of a period in the section title; it causes problems
-.. % with readers of the GNU info version. See http://www.python.org/sf/581414.
-
.. _matching-searching:
@@ -407,15 +400,11 @@
:const:`MULTILINE` mode also immediately following a newline. The "match"
operation succeeds only if the pattern matches at the start of the string
regardless of mode, or at the starting position given by the optional *pos*
-argument regardless of whether a newline precedes it.
-
-.. % Examples from Tim Peters:
-
-::
+argument regardless of whether a newline precedes it. ::
>>> re.match("c", "abcdef") # No match
>>> re.search("c", "abcdef")
- <_sre.SRE_Match object at 0x827e9c0> # Match
+ <_sre.SRE_Match object at 0x827e9c0> # Match
.. _contents-of-module-re:
@@ -451,10 +440,9 @@
but the version using :func:`compile` is more efficient when the expression
will be used several times in a single program.
- .. % (The compiled version of the last pattern passed to
- .. % \function{re.match()} or \function{re.search()} is cached, so
- .. % programs that use only a single regular expression at a time needn't
- .. % worry about compiling regular expressions.)
+ .. (The compiled version of the last pattern passed to :func:`re.match` or
+ :func:`re.search` is cached, so programs that use only a single regular
+ expression at a time needn't worry about compiling regular expressions.)
.. data:: I