]> 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)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:05:18 +0000 (20:05 +0100)
commit12bd7e9258423aac3a35e599323ada82121ae2b4
tree7d09fd82da3be0120bea30fc6a9dea3a67be6a3a
parent5f430976162804272f4f684fea186a04d48b559f
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