Matching input with node. Compatibility with std.regex.matchFirst.
ditto
const x = "ab"; assert(x.matchFirst(lit(x[0 .. 1])) is x[0 .. $]); assert(x.matchFirst(lit(x[1 .. 2])) is x[1 .. 2]);
See Implementation
Matching input with node. Compatibility with std.regex.matchFirst.