Name
findfirstnotof — Searches string for the first non matching chars
Synopsis
integer
findfirstnotof
( |
string
STRING
, |
|
string
CHARS
) ; |
Parameters
-
string
STRING
-
string
CHARS
Return
-
integer
the position of the first character in STRING
that is not contained in CHARS
.
Description
The findfirstnotof
function searches the first element of string that doesn't match any character stored in chars and returns its position.
Usage
findfirstnotof ("abcdefghi", "abcefghi") -> 3
findfirstnotof ("aaaaa", "a") -> nil