JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/find-all



    cfunction

    (string/find-all patt str &opt start-index)

    Searches for all instances of pattern patt in string str. Returns 
    an array of all indices of found patterns. Overlapping instances of 
    the pattern are counted individually, meaning a byte in str may 
    contribute to multiple found patterns.


1 exampleSign in to add an example
Loading...
(string/find-all "duck" "duck duck duck goose!") # => @[0 5 10]
sogaiuPlayground