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