Name
find
Synopsis
m
.find(str
,start
=0)
Returns the lowest index I
greater than or
equal to start
such that
str
==
m
[
i
:i
+len(
str
)]
.
If no such i
exists,
m
.find
returns
-1
. This is the same functionality as for the
find
method of string objects, covered in Chapter 9.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.