]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add re.VERBOSE flag documentation example (GH-97678)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Oct 2022 01:29:54 +0000 (18:29 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2022 01:29:54 +0000 (18:29 -0700)
commit01513758298ae8fb956ce18c01d748d2986cfef3
treec0b3b6b40f751d819d12a55ce3f59c9efd00247b
parentd03f45203b4abf8095d5c5c692c9c9c2f8083eec
Add re.VERBOSE flag documentation example (GH-97678)

The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7fa408b64377ea31dd5386152da19ef38a)

Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>
Doc/library/re.rst