Function find()

← Back to Module string



Module string → find()

Description

Find the position of the first occurrence of a substring in a string

find(s, search, start_pos = 0)


Parameters


Return Value


Usage Example

find("Hello World", "Wo")       ' Returns 6
find("Hello World", "Wo", 10)   ' Returns -1