ref: f5bedf7001b8fb6e42ab1f044b27f3a39eb537c6
dir: /main.myr/
use regex
use std
const main = {
var found
match regex.compile(".*bc")
| `std.Success re:
found = regex.exec(re, "Abc")
std.put("Found = %t: len = %z\n", found, re.strp)
-> 0
| `std.Failure err:
std.put("failed to compile regex")
-> 1
;;
}