PLAYGROUND (experimental)

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

NameTypeRequiredDefaultDescription
stryes-String to search in
patternyes-Substring to find