✓
Passing This code compiles and runs correctly.
Code
// replace, no refs: every digit run swaps for the literal template.
import std/io
import std/regex
std/regex:replace(input: "a12b345c", with: "X")
| `[0-9]+` r |> std/io:print.ln("{{ r:s }}")
Actual
aXbXc
Expected output
aXbXc
Flows
flow ~replace click a branch to expand · @labels scroll to their anchor
replace (input: "a12b345c", with: "X")
Test Configuration
MUST_RUN