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