find_last_of
Method of string.
Overloads
| Name | Description |
|---|---|
find_last_of(const string f, integer pos) -> integer | Finds the last occurrence of any character from the specified substring starting from the given position. |
find_last_of(string list) -> Object | Finds the last character contained in a character list. |
find_last_of(const string f, integer pos) -> integer
Finds the last occurrence of any character from the specified substring starting from the given position.
Parameters
- f: The substring containing characters to search for.
- pos: The position to start the search from.
find_last_of(string list) -> Object
Finds the last character contained in a character list.
Parameters
- list: The characters to find.
Returns
The match position, or the underlying not-found value.
Example
"abab".find_last_of("bec")
//-> 3