lastIndexOf
Description
Searches for the last occurrence of the substring inside of string . Returns the index of where substring was found, or -1 if it wasn't found. The first position in the string is position 0.
Syntax
lastIndexOf( string, substring )
Examples
lastIndexOf("Hamburger", "urge") //returns 4lastIndexOf("Test", "") //returns 4lastIndexOf("Dysfunctional", "fun") //returns 3lastIndexOf("Dysfunctional", "marble") //returns -1lastIndexOf("banana", "n") //returns 4