diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-14 15:38:50 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-14 15:38:50 (GMT) |
commit | 14c1fe682f0086ec28f24fee9bf1c85d80507ee5 (patch) | |
tree | 5de9e0da55ff338d1dc2356607ecc29591f318bc /Doc/library | |
parent | cc0961c517c31578f6a40a4dc7ea177d62c256b7 (diff) | |
download | cpython-14c1fe682f0086ec28f24fee9bf1c85d80507ee5.zip cpython-14c1fe682f0086ec28f24fee9bf1c85d80507ee5.tar.gz cpython-14c1fe682f0086ec28f24fee9bf1c85d80507ee5.tar.bz2 |
bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4394)
(cherry picked from commit b0b44b4b3337297007f5ef87220a75df204399f8)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/re.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index a4fe6d5..30a01eb 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -610,7 +610,8 @@ form. This flag allows you to write regular expressions that look nicer and are 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. + when in a character class, or when preceded by an unescaped backslash, + or within tokens like ``*?``, ``(?:`` or ``(?P<...>``. 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. |