mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
bpo-15606: Improve the re.VERBOSE documentation. (#4366)
This commit is contained in:
parent
e1d62e0b7c
commit
b0b44b4b33
1 changed files with 2 additions and 1 deletions
|
@ -617,7 +617,8 @@ form.
|
||||||
This flag allows you to write regular expressions that look nicer and are
|
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
|
more readable by allowing you to visually separate logical sections of the
|
||||||
pattern and add comments. Whitespace within the pattern is ignored, except
|
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
|
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
|
preceded by an unescaped backslash, all characters from the leftmost such
|
||||||
``#`` through the end of the line are ignored.
|
``#`` through the end of the line are ignored.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue