diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-08 11:56:56 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-08 11:56:56 (GMT) |
commit | 84f387d420fd908973cf9660f91b448d7e848b42 (patch) | |
tree | d85c24a90abc5d2df07dbfd5d420c39526b3909f /Doc/library/re.rst | |
parent | e42e129ebec9918adcae6f93b18bb6652f29c3fe (diff) | |
download | cpython-84f387d420fd908973cf9660f91b448d7e848b42.zip cpython-84f387d420fd908973cf9660f91b448d7e848b42.tar.gz cpython-84f387d420fd908973cf9660f91b448d7e848b42.tar.bz2 |
Issue #21593: Clarify that re.search() returns the first match
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 82beba1..ceb7959 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -811,8 +811,8 @@ attributes: .. method:: regex.search(string[, pos[, endpos]]) - Scan through *string* looking for a location where this regular expression - produces a match, and return a corresponding :ref:`match object + Scan through *string* looking for the first location where this regular + expression produces a match, and return a corresponding :ref:`match object <match-objects>`. Return ``None`` if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string. |