JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/replace



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

    (string/replace patt subst str)

    Replace the first occurrence of `patt` with `subst` in the string 
    `str`. Will return the new string if `patt` is found, otherwise 
    returns `str`.


1 exampleSign in to add an example
Loading...
(string/replace "+" "-" "ctrl+c")
# => "ctrl-c"
sogaiuPlayground