(original) (raw)
changeset: 90917:6013a112aba0 branch: 3.4 parent: 90912:220bed23696e user: Terry Jan Reedy tjreedy@udel.edu date: Fri May 30 16:19:59 2014 -0400 files: Doc/library/re.rst description: Issue #21593: (from StackOverflow) minor doc clarification for re.search. diff -r 220bed23696e -r 6013a112aba0 Doc/library/re.rst --- a/Doc/library/re.rst Fri May 30 18:59:27 2014 +0100 +++ b/Doc/library/re.rst Fri May 30 16:19:59 2014 -0400 @@ -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`. Return ``None`` if no position in the string matches the pattern; note that this is different from finding a zero-length match at some/tjreedy@udel.edu