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