summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/re.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 2392785..3a6e2e7 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -781,7 +781,8 @@ Flags
more readable by allowing you to visually separate logical sections of the
pattern and add comments. Whitespace within the pattern is ignored, except
when in a character class, or when preceded by an unescaped backslash,
- or within tokens like ``*?``, ``(?:`` or ``(?P<...>``.
+ or within tokens like ``*?``, ``(?:`` or ``(?P<...>``. For example, ``(? :``
+ and ``* ?`` are not allowed.
When a line contains a ``#`` that is not in a character class and is not
preceded by an unescaped backslash, all characters from the leftmost such
``#`` through the end of the line are ignored.