JanetDocsPlaygroundI'm feeling luckyGitHub sign in

peg/replace



    cfunction

    (peg/replace peg repl text &opt start & args)

    Replace first match of peg in text with repl, returning a new buffer.
    The peg does not need to make captures to do replacement. If no
    matches are found, returns the input string in a new buffer.


0 examplesSign in to add an example
Loading...