ExCellerate.Functions.General.Find (excellerate v0.4.0)

Copy Markdown View Source

Returns the 0-based position of the first occurrence of a search string within text, or -1 if not found.

An optional third argument specifies a starting position for the search.

Examples

find('world', 'hello world')     6
find('xyz', 'hello')             -1
find('o', 'hello world', 5)      7