Core Function IndexNotOfAny
From Sputnik Wiki
IndexNotOfAny( <expression>, <needle>, <pos>, <case>, <count> )
Contents |
Description
Reports the index of the first none occurrence of any character in a specified array of characters or a string.
expression
The string to use.
needle
The characters to not find.
pos
Optional; Position to start the search from within the expression.
Default: 0
case
Optional; Case sensitive option
false = Case sensitive search
true = Case insensitive search
Default: false
count
Optional; The amount of characters to check before quitting the search
Default: expression length - pos
Return Value
Success: Returns position of the first found character in the string that does not match the needle.
Failure: Returns -1.
Remarks
None.
Example
Case sensitive
println( IndexNotOfAny("The quick brown FoX", "The") );
Case insensitive
println( IndexNotOfAny("The quick brown FoX", "tHE", 0, true) );