Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d62e0 commit b0b44b4Copy full SHA for b0b44b4
1 file changed
Doc/library/re.rst
@@ -617,7 +617,8 @@ form.
617
This flag allows you to write regular expressions that look nicer and are
618
more readable by allowing you to visually separate logical sections of the
619
pattern and add comments. Whitespace within the pattern is ignored, except
620
- when in a character class or when preceded by an unescaped backslash.
+ when in a character class, or when preceded by an unescaped backslash,
621
+ or within tokens like ``*?``, ``(?:`` or ``(?P<...>``.
622
When a line contains a ``#`` that is not in a character class and is not
623
preceded by an unescaped backslash, all characters from the leftmost such
624
``#`` through the end of the line are ignored.
0 commit comments