ref: 58f59a52b75a9bd3d1be9ae6f4532f5949e45896
dir: /libregex/test/capture.myr/
use std
use "testmatch.use"
const main = {
testmatch("A(.*)", "Abc", `std.Some ["bc"][:])
testmatch("A(.*)e", "Abcde", `std.Some ["bcd"][:])
testmatch("(a|b)+", "abab", `std.Some ["b"][:])
testmatch("A(b(.*)d)e", "Abcde", `std.Some [
"bcd",
"c"
][:])
testmatch("(a?)(a*)(a?)", "aaaa", `std.Some [
"a",
"aaa",
""
][:])
}