Function findlast()

← Back to Module string



Module string → findlast()

Description

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

findlast(s, search, start_pos = (length(s)-1))


Parameters


Return Value


Usage Example

findlast("Hello World", "o")      ' Returns 7
findlast("Hello World", "o", 6)   ' Returns 4
findlast("Hello World", "o", 2)   ' Returns -1