Commit 9f7f62f0 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #21593: (from StackOverflow) minor doc clarification for re.search.

parent 9d5a05fa
...@@ -527,7 +527,7 @@ form. ...@@ -527,7 +527,7 @@ form.
.. function:: search(pattern, string, flags=0) .. 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` *pattern* produces a match, and return a corresponding :class:`MatchObject`
instance. Return ``None`` if no position in the string matches the pattern; note 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 that this is different from finding a zero-length match at some point in the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment