Name
findlastnotof — Searches the last element of string that doesn't match
Synopsis
integer
findlastnotof
( |
string
| STRING, |
|
string
| CHARS) ; |
Parameters
-
string
STRING
-
string
CHARS
Characters
Return
-
integer
The position of the last character in STRING
that is NOT contained in CHARS
.
Description
The `findlastnotof' function searches the last element of string that doesn't match any character stored in chars and returns its position.
If no match is found the function returns `nil'.
Usage
findlastnotof( "abcdefghi", "abcefghi" ) -> 3 ('d')
findlastnotof("aaaaa", "a") -> nil