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