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