✓
Passing This code compiles and runs correctly.
Code
// MIRROR of 640_006_match_groups_whole_binding: `std/regex:match` with a
// grouped pattern and whole-payload binding, relocated into an imported module.
//
// 115_003 pins `regex:scan` on the boundary; this pins `match`, the library's
// other entry point, because the two synthesize their automaton through
// different paths and one can hold while the other does not.
import app/lib
app/lib:run()
Supporting Files
import std/io
import std/regex
pub tor run {}
run = std/regex:match("21,9")
| `(?<row>[0-9]+),(?<col>[0-9]+)` pos |> std/io:print.ln("row={{ pos.row:s }} col={{ pos.col:s }}")
| no-match |> std/io:print.ln("no")
Actual
row=21 col=9
Expected output
row=21 col=9
Flows
flow ~run click a branch to expand · @labels scroll to their anchor
run
Test Configuration
MUST_RUN