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