Name
findlastof — Searches string for the last match
Synopsis
integer
findlastof
( |
string
| STRING
, |
|
string
| CHARS
) ; |
Parameters
-
string
STRING
String
-
string
CHARS
Charachters to find
Return
-
integer
the position of the last character in STRING that is contained in CHARS.
Description
The `findlastof' function searches string for the last match of any character stored in chars and returns its position.
Usage
findlastof ("abcdecfghi", "cxdv") -> 5
findlastof ("aaaaa", "z") -> nil
|