From: Terry Jan Reedy Date: Fri, 30 May 2014 20:19:50 +0000 (-0400) Subject: Issue #21593: (from StackOverflow) minor doc clarification for re.search. X-Git-Tag: v2.7.8~37^2~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f7f62f06d0b63d20e5e881eed1b7aacea5ecf97;p=python Issue #21593: (from StackOverflow) minor doc clarification for re.search. --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 91afbd497c..52909adce1 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -527,7 +527,7 @@ form. .. 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