JanetDocsI'm feeling luckyGithub sign in

string/replace



    cfunction

    (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"
sogaiu