[Python-checkins] cpython (2.7): Issue #21593: (from StackOverflow) minor doc clarification for re.search.
terry.reedy
python-checkins at python.org
Fri May 30 22:20:52 CEST 2014
http://hg.python.org/cpython/rev/f7bb1d73a341
changeset: 90916:f7bb1d73a341
branch: 2.7
parent: 90914:735fdcc738a5
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Fri May 30 16:19:50 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
@@ -527,7 +527,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 :class:`MatchObject`
instance. 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list