Function
string.find

Signature

find(s, *args)

Documentation String

find(s, sub [,start [,end]]) -> in

Return the lowest index in s where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation.

Return -1 on failure.