str_find_all
Returns list of all positions where pattern occurs in string.
str_find_all(
str,
pattern
) -> LIST
Returns list of all positions where pattern occurs in string.
Syntaxe
var result = str_find_all("Hello World", "o"); // [4, 7]\nvar result2 = str_find_all("Hello World", "xyz"); // []
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
str | yes | - | String to search in | |
pattern | yes | - | Substring to find |