strLastIndexOf(
const string, // string to search in
const patt, // pattern searched
[const start, // start position in string (default=MAXLONG)
const ignorecase]) // case independent search (default=false)
Searches an occurrence of patt in string starting at end of string
and going to the beginning. If the pattern is found,
the 1-based index of the first character is returned. If the pattern is not found,
0 is returned.
Examples:
strLastIndexOf('hello world', 'o'); // 8
strLastIndexOf('hello world', 'o', 6); // 5
strLastIndexOf('hello world', 'x'); // 0
|