Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69c7a69

Browse files
committed
Closes #14283: match() and search() are regex methods, not match methods.
1 parent 7441a7a commit 69c7a69

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Doc/library/re.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -944,16 +944,15 @@ support the following methods and attributes:
944944
.. attribute:: match.pos
945945

946946
The value of *pos* which was passed to the :meth:`~regex.search` or
947-
:meth:`~regex.match` method of a :ref:`match object <match-objects>`. This
948-
is the index into the string at which the RE engine started looking for a
949-
match.
947+
:meth:`~regex.match` method of a :ref:`regex object <re-objects>`. This is
948+
the index into the string at which the RE engine started looking for a match.
950949

951950

952951
.. attribute:: match.endpos
953952

954953
The value of *endpos* which was passed to the :meth:`~regex.search` or
955-
:meth:`~regex.match` method of a :ref:`match object <match-objects>`. This
956-
is the index into the string beyond which the RE engine will not go.
954+
:meth:`~regex.match` method of a :ref:`regex object <re-objects>`. This is
955+
the index into the string beyond which the RE engine will not go.
957956

958957

959958
.. attribute:: match.lastindex

0 commit comments

Comments
 (0)