diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-08 14:56:56 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-08 14:56:56 +0300 |
commit | 55280b73d8aea0477b28327b337013ddc469d747 (patch) | |
tree | 69fc9f99497b2d4c4f535cb7a690223287173654 | |
parent | d123005a6fdf24af440f8d26e36ebf90670f1cf1 (diff) | |
download | cpython-55280b73d8aea0477b28327b337013ddc469d747.tar.gz |
Issue #21593: Clarify that re.search() returns the first match
-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 82beba1534..ceb795976d 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. |