DLiteScript

strings.lastIndexOf

Returns the index of the last occurrence of a substring.

Examples

1
printf("%g\n", strings.lastIndexOf("hello world world", "world")) // 12