shithub: mc

ref: 5fe0859c8a8a801150efa772492db9b6f1baa631
dir: /main.myr/

View raw version
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
		;;
	;;
}