Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0edb5c1

Browse files
committed
Issue #21593: (from StackOverflow) minor doc clarification for re.search.
1 parent c673a9a commit 0edb5c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/re.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ form.
563563

564564
.. function:: search(pattern, string, flags=0)
565565

566-
Scan through *string* looking for a location where the regular expression
566+
Scan through *string* looking for the first location where the regular expression
567567
*pattern* produces a match, and return a corresponding :ref:`match object
568568
<match-objects>`. Return ``None`` if no position in the string matches the
569569
pattern; note that this is different from finding a zero-length match at some

0 commit comments

Comments
 (0)