Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0b44b4

Browse files
bpo-15606: Improve the re.VERBOSE documentation. (#4366)
1 parent e1d62e0 commit b0b44b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/re.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@ form.
617617
This flag allows you to write regular expressions that look nicer and are
618618
more readable by allowing you to visually separate logical sections of the
619619
pattern and add comments. Whitespace within the pattern is ignored, except
620-
when in a character class or when preceded by an unescaped backslash.
620+
when in a character class, or when preceded by an unescaped backslash,
621+
or within tokens like ``*?``, ``(?:`` or ``(?P<...>``.
621622
When a line contains a ``#`` that is not in a character class and is not
622623
preceded by an unescaped backslash, all characters from the leftmost such
623624
``#`` through the end of the line are ignored.

0 commit comments

Comments
 (0)