Skip to content

Commit b0258f6

Browse files
Update Doc/howto/regex.rst
Co-authored-by: Guido van Rossum <[email protected]>
1 parent 961a4ef commit b0258f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/howto/regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,8 @@ module::
10221022
r' (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])'
10231023
r'"')
10241024

1025-
It's much easier to write ``m.group('zonem')``, instead of having
1026-
to remember to retrieve group 9.
1025+
It's much easier to write ``m.group('zonem')`` instead of having
1026+
to count groups so as to verify we must retrieve group 9.
10271027

10281028
The syntax for backreferences in an expression such as ``(...)\1`` refers to the
10291029
number of the group. There's naturally a variant that uses the group name

0 commit comments

Comments
 (0)