[Python-checkins] cpython (3.4): Issue #21593: (from StackOverflow) minor doc clarification for re.search.

terry.reedy python-checkins at python.org
Fri May 30 22:20:53 CEST 2014


http://hg.python.org/cpython/rev/6013a112aba0
changeset:   90917:6013a112aba0
branch:      3.4
parent:      90912:220bed23696e
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Fri May 30 16:19:59 2014 -0400
summary:
  Issue #21593: (from StackOverflow) minor doc clarification for re.search.

files:
  Doc/library/re.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -563,7 +563,7 @@
 
 .. function:: search(pattern, string, flags=0)
 
-   Scan through *string* looking for a location where the regular expression
+   Scan through *string* looking for the first location where the regular expression
    *pattern* 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list