]> 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:37:01 +0000 (18:37 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2022 01:37:01 +0000 (18:37 -0700)
commit24908f1f207f4642fc57ae79c69a3dcb0770a96a
treee38d51693068a05a5d7187b262928abc4ef34102
parent09e5029aca36c21157516bb44269644084fdf9ad
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