[Python-checkins] cpython (3.5): Issue #21593: Clarify that re.search() returns the first match
berker.peksag
python-checkins at python.org
Wed Jun 8 07:57:35 EDT 2016
https://hg.python.org/cpython/rev/48bb48e7499d
changeset: 101790:48bb48e7499d
branch: 3.5
parent: 101786:1dc495007b8f
user: Berker Peksag <berker.peksag at gmail.com>
date: Wed Jun 08 14:56:56 2016 +0300
summary:
Issue #21593: Clarify that re.search() returns the first match
files:
Doc/library/re.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -811,8 +811,8 @@
.. 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.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list