string.indexAny
In the input string, this function returns the index of the first instance of any Unicode code point form characters.
Syntax
string.indexAny(str, substr)
Arguments
Argument |
Type |
Description |
---|---|---|
str |
string |
Source string |
substr |
string |
Substring to be searched for in the source string |
Returns
Type |
Description |
---|---|
int |
-1: if no Unicode code point form characters are present in the input string |
Examples
The function string.indexAny("hello flogo", "flogo")
returns 2
.