Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
  • Loading branch information
akuchling and gvanrossum authored Sep 25, 2024
1 parent b0258f6 commit bb9497d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/howto/regex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ desired group's name. Named groups are still given numbers, so you can
retrieve information about a group in two ways::

>>> p = re.compile(r'(?P<word>\b\w+\b)')
>>> m = p.search( '((( Lots of punctuation )))' )
>>> m = p.search('((( Lots of punctuation )))')
>>> m.group('word')
'Lots'
>>> m.group(1)
Expand Down

0 comments on commit bb9497d

Please sign in to comment.