ref: b00a84d15d8e3dcf8a2558d2d3f615c738864125
dir: /main.myr/
use regex
use std
const main = {
var found
match regex.compile("(a|b)*s*")
`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
;;
;;
}