JanetDocsPlaygroundI'm feeling luckyGitHub sign in

peg/replace-all



    cfunction
    src/core/peg.c on line 1758, column 1

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

    Replace all matches of peg in text with repl, returning a new 
    buffer. The peg does not need to make captures to do replacement.


1 exampleSign in to add an example
Loading...
(peg/replace-all '(set "aiou") "e" "The quick brown fox jumps over the lazy dog")
# returns The qeeck brewn fex jemps ever the lezy deg
pepePlayground