JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/replace-all



    cfunction
    src/core/string.c on line 414, column 1

    (string/replace-all patt subst str)

    Replace all instances of `patt` with `subst` in the string `str`. 
    Overlapping matches will not be counted, only the first match in 
    such a span will be replaced. Will return the new string if `patt` 
    is found, otherwise returns `str`.


1 exampleSign in to add an example
Loading...
(string/replace-all "e" "o" "feed") # => "food"
sogaiuPlayground